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

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -