RE: [SQL] Re: drop table if exists

2001-07-17 Thread Maxim Maletsky
strom [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 04, 2001 7:39 AM To: Jason Watkins Cc: [EMAIL PROTECTED] Subject: [SQL] Re: drop table if exists Just drop the table using "DROP TABLE mytable;" and ignore the error... I'm sure there are fancy ways of doing it by accessing system tabl

[SQL] Re: drop table if exists

2001-07-03 Thread Philip Hallstrom
Just drop the table using "DROP TABLE mytable;" and ignore the error... I'm sure there are fancy ways of doing it by accessing system tables, but the above works for me. On Tue, 3 Jul 2001, Jason Watkins wrote: > How can I duplicate the behavior of: > > DROP TABLE IF EXISTS mytable; > > CREATE T

[SQL] Re: drop table if exists

2001-07-03 Thread Jason Watkins
Doesn't work. I like wrapping up the entire file in a transaction so that if I make a stupid syntax error or the like, I can just do a rollback. Because of that, the transaction enters abort state. I suppose I can just stop using transactions and use this method. ---(end