Re: PL/SQL !

From: Lawrence Simela <lsimela_at_mahalini.prestel.co.uk>
Date: Tue, 21 Aug 2001 01:21:16 +0100
Message-ID: <9ltjpa$lcv$1_at_phys-ma.sol.co.uk>


I think perhaps you are confusing an empty table and a table which is does not exist.

To code for an empty table you would use a cursor which counts all rows in that table.

To code for a non-existent table then you would have to query the user_tables view as everyone suggests.

"Rahul" <rahul_europe_at_yahoo.com> wrote in message news:923a99a4.0108201211.f59a523_at_posting.google.com...
> hi there:
>
> I was wondering if you have the answer of following two questions:
>
> a. Inside PL/SQL block, how to check that a particular table does not
> exist.
>
> I know this one,but there will be some other better ways as well, so
> do you know some of them?
>
> if(rad_cursor2%NOTFOUND) then
> dbms_output.put_line('the table is emply');
>
>
> b. how to call a trigger block from PL/SQL block.
>
>
> regards,
> rahul
Received on Tue Aug 21 2001 - 02:21:16 CEST

Original text of this message