Nov 16, 2001 #1 martindavey Programmer Joined Jan 2, 2000 Messages 122 Location GB I have tried drop table if exists myTable but this is a syntax error. I am using Informix. Any ideas?
I have tried drop table if exists myTable but this is a syntax error. I am using Informix. Any ideas?
Nov 19, 2001 #2 Tim1 Programmer Joined Mar 27, 2001 Messages 242 Location GB Hiya, You should be able to do: IF OBJECT_ID('my_table') IS NOT NULL DROP TABLE my_table HTH Tim Upvote 0 Downvote