Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: PL/SQL statement
elufker_at_llama.swcp.com wrote:
>
> Hi All;
>
> Does anyone have any example code that would check to see if a table
> exsists, and if not skip to the create table statement. If the table does
> exsist, then just skip to the end.
>
> Thanks in advance for any help here
> Eddie Lufker
Declare
Cursor C1 is
select *
from all_tables
where owner = 'SCOTT'
and table_name = 'EMP';
Rowcount Integer(1) := 0;
Begin
For I in C1 Loop
Rowcount := SQL%ROWCOUNT; Exit;
/* put code here to create table */
End if;
End;
Received on Tue Nov 02 1999 - 13:47:37 CST
![]() |
![]() |