Computing.Net > Forums > Programming > exists SQL keyword

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

exists SQL keyword

Reply to Message Icon

Name: Jim
Date: November 19, 2002 at 06:01:49 Pacific
OS: Win2K
CPU/Ram: 1GB
Comment:

I'm trying to write a SQL command to drop a table if that table exists. I can't seem to come up with the correct syntax but think I need to use the exists keyword. Please help!



Sponsored Link
Ads by Google

Response Number 1
Name: brandon
Date: November 19, 2002 at 11:39:18 Pacific
Reply:

what environment are you in? rexx, cobol, interactive sql??


0

Response Number 2
Name: Shmanda
Date: November 19, 2002 at 22:32:07 Pacific
Reply:

Try:

DROP TABLE IF EXISTS table_name;


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: exists SQL keyword

VB sql www.computing.net/answers/programming/vb-sql/9046.html

sql top keyword for oracle www.computing.net/answers/programming/sql-top-keyword-for-oracle/7727.html

ASP Detecting Record Existence www.computing.net/answers/programming/asp-detecting-record-existence/6725.html