Re: Why these two methods using cursor to acquire table_name and then using this table_name to select its returned lines is always encoutered a weird error?

From: Dominic Brooks <dombrooks_at_hotmail.com>
Date: Thu, 9 Dec 2021 09:25:41 +0000
Message-ID: <AS8P193MB17502907C9D0897BBA28A7BDA1709_at_AS8P193MB1750.EURP193.PROD.OUTLOOK.COM>



Remove into from the select count(*) sql.

Use execute immediate … into.

Cheers
Dominic

Sent from my iPhone

On 9 Dec 2021, at 08:32, Quanwen Zhao <quanwenzhao_at_gmail.com> wrote:


Hello my friends 😊,

I've written two anonymous plsql blocks checking those tables (starting with "DBA_HIST_" in SYS schema of oracle database) returned line is 0, but it's always encountered an error.

Here's my PL/SQL code:

Could you help me troubleshooting it? Thanks beforehand 🙏.

Best Regards
Quanwen Zhao

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Dec 09 2021 - 10:25:41 CET

Original text of this message