Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Testing a table existence

Re: Testing a table existence

From: Jim Kennedy <kennedy-family_at_attbi.com>
Date: Mon, 10 Dec 2001 15:33:32 GMT
Message-ID: <gB4R7.25415$wL4.63960@rwcrnsc51>


You want to look in the user_tables something like this:

myVariable:=0;
select count(*) into myVariable from user_tables where table_name='MYTABLE'; if myVariable>0 then
...
end if;

Jim

"Sylvain BOURDETTE" <sbourdette_at_danet.fr> wrote in message news:3c14cac6$0$3179$626a54ce_at_news.free.fr...
> How in PL SQL, can test if a table exists ?
>
> I try this
>
> IF EXISTS MyTable THEN
>
> END IF;
>
> But it doesn't work
>
> Thanks
>
>
Received on Mon Dec 10 2001 - 09:33:32 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US