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 -> Drop table

Drop table

From: <petr_kucera_at_my-deja.com>
Date: Mon, 21 Feb 2000 10:10:46 GMT
Message-ID: <88r2v5$qdq$1@nnrp1.deja.com>


Is there a way how to drop a table in Oracle DB, but I'd like to check if this table alredy exists in database? Something like this:

if exists(select * from user_tables where table_name='mytable') then

   drop table mytable;
end if;

but I can't use DDL statements.

ThanX.

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Mon Feb 21 2000 - 04:10:46 CST

Original text of this message

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