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

Home -> Community -> Usenet -> c.d.o.misc -> DROP table <some table>;

DROP table <some table>;

From: Gary M. Greenberg <garyg_at_users.jaxnet.com>
Date: 1997/02/13
Message-ID: <5dtr0t$gi@ns2.southeast.net>#1/1

In Oracle, The Complete Reference the examples for sqlplus to create a table start with:
drop table <the table to be created>;
create table <the table> ( ...

Now, I understand that the error is ignorable, but as a programmer it bothers me not to 1st check for the table's prior existence. So, how does one begin such a SQL script wherein the logic would be:

if (<the table to be created> exists) then drop table <the table>
end
create table ...

Reply by post and/or email at your preference. Thanks,

gary            The C Programmer's Reference:
         http://users.southeast.net/~garyg/C_ref/C/c.html
                AVENUE Class Requests Index:
           http://users.southeast.net/~garyg/class.htm
Received on Thu Feb 13 1997 - 00:00:00 CST

Original text of this message

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