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: to avoid errors while dropping not existing objects

Re: to avoid errors while dropping not existing objects

From: <frank.van.bortel_at_gmail.com>
Date: 10 Oct 2006 01:21:29 -0700
Message-ID: <1160468489.664809.32270@i42g2000cwa.googlegroups.com>

fireball schreef:

> how to test whether table exists before I drop it?
>
>
> /newbie

select * from <table_name>;
If it fails - it's not there (or you cannot see it). If it succeeds, drop it.

What's the difference with:
drop table <table_name>;?
If it does not exist - error. If it does: OK.

Just stick the the drop table. Ignore any messages. Received on Tue Oct 10 2006 - 03:21:29 CDT

Original text of this message

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