Google Answers Logo
View Question
 
Q: oracle table check before dropping table ( No Answer,   0 Comments )
Question  
Subject: oracle table check before dropping table
Category: Computers > Programming
Asked by: wag-ga
List Price: $5.00
Posted: 27 Oct 2004 18:34 PDT
Expires: 27 Oct 2004 20:29 PDT
Question ID: 421011
Hi,

I want to do this.

sqlplus login/password < dropandcreatetable.sql.

Sample dropandcreatetable.sql:

DROP TABLE TEST;

CREATE TABLE TEST
(
  ID            CHAR
);

Can someone suggest a way to do this without getting table exists errors.
This means i need to check if table exists and then drop table.
conditions:

i do not want to create a seperate proc to check if table exists.
i do not want to turn of exception checking.

So basically it needs to run with all the code in the sql file from command line.

Any ideas?

Request for Question Clarification by mathtalk-ga on 27 Oct 2004 19:50 PDT
Hi, wag-ga:

What version of Oracle are you on?

regards, mathtalk-ga
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy