checking if a table exists
Posted: Tue Jun 27, 2006 4:32 pm
How would you check to see if a mysql table exists?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
SHOW TABLESCode: Select all
SHOW TABLES LIKE 'someName'Code: Select all
DROP TABLE IF EXISTS `table_name`;
CREATE TABLE IF NOT EXISTS `table_name` (...