Quote:
Originally posted by fudun
Hello?
How does that check whether the table already exists?
I think you misunderstood my question.
I know there are some advanced SQL functions, like IF EXISTS <table> or something.
|
if not exists (select * from dbo.sysobjects where name = 'table_name')
is how you would do it in Sql Server. You probably need to find the equivalent of the sysobjects table in mysql, and query that. sysobjects is the table which contains all the objects in the database, I would imagine that there is a similar thing in mysql.