Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drop a table

Status
Not open for further replies.

cfmartin2000

Programmer
Jul 12, 2006
23
0
0
US
Is it possible to use an IF statement to drop a table if it exists and skip it otherwise?

I am trying to get this (pseudo-code):

IF(istable(table1)) then DROP table1 else do nothing

Thanks in advance.
 
Thanks. I'm not an idiot but I feel like on in seeing how easy that is.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top