Path: dp-news.maxwell.syr.edu!spool.maxwell.syr.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!postnews.google.com!i42g2000cwa.googlegroups.com!not-for-mail
From: "frank.van.bortel@gmail.com" <frank.van.bortel@gmail.com>
Newsgroups: comp.databases.oracle.server
Subject: Re: to avoid errors while dropping not existing objects
Date: 10 Oct 2006 01:21:29 -0700
Organization: http://groups.google.com
Lines: 18
Message-ID: <1160468489.664809.32270@i42g2000cwa.googlegroups.com>
References: <egfkoe$f9l$1@nemesis.news.tpi.pl>
NNTP-Posting-Host: 145.12.10.1
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1160468494 18110 127.0.0.1 (10 Oct 2006 08:21:34 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 10 Oct 2006 08:21:34 +0000 (UTC)
In-Reply-To: <egfkoe$f9l$1@nemesis.news.tpi.pl>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: i42g2000cwa.googlegroups.com; posting-host=145.12.10.1;
   posting-account=VU9ObQ0AAABpUdxfkDNLCGpxPvBEDT56
Xref: dp-news.maxwell.syr.edu comp.databases.oracle.server:276897


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.

