I am creating table in MySql by using the coomand, create table person ( id int, name int). Actually, I want to create table person if there exists no person table in database. Can anybody help me, how to acive this ?
-
This might help: stackoverflow.com/questions/84330/…Dan– Dan2012-02-02 22:23:47 +00:00Commented Feb 2, 2012 at 22:23
-
Or this: stackoverflow.com/questions/9069179/…thursdaysgeek– thursdaysgeek2012-02-02 22:40:33 +00:00Commented Feb 2, 2012 at 22:40
Add a comment
|
4 Answers
The manual page says that you should use
CREATE TABLE IF NOT EXISTS person (id int, name int);