php - How to tell if CREATE TABLE IF NOT EXISTS created table? -


this question has answer here:

the sql query create table mytable if not exists returns true (in php app) if query ran correctly, not if table created.

how can tell if table created without running query? don't want run double amount of queries every single time app runs.

try this

create table if not exists `table_name` ( `table field defination` ) engine = `engine_name` 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -