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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I tell if a temp table exists before dropping

Status
Not open for further replies.

martindavey

Programmer
Jan 2, 2000
122
0
0
GB
I have tried drop table if exists myTable
but this is a syntax error.

I am using Informix.

Any ideas?
 
Hiya,

You should be able to do:

IF OBJECT_ID('my_table') IS NOT NULL
DROP TABLE my_table


HTH

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top