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

Home -> Community -> Usenet -> c.d.o.tools -> How to find out if a table already exists with PL/SQL

How to find out if a table already exists with PL/SQL

From: NoSpam <NoSpam_at_NoSpam.com>
Date: Thu, 9 Nov 2000 14:08:11 -0500
Message-ID: <8uekvs$ibi$1@ih292.ea.unisys.com>

Hi,

I'm porting a Sybase script to Oracle. There is this thing that we do in Sybase but I just can't do in Oracle. In Sybase, we do:

if exists (select * from sysobjects where name = 'TEMPTBL')  begin
 print "Deleting table TEMPTBL....."
 drop table TEMPTBL
 end
go

Just how do I do this in Oracle?

TIA Received on Thu Nov 09 2000 - 13:08:11 CST

Original text of this message

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