david-w3
9/18/2012 - 8:54 AM

MySQL: Check if a table exists - version 3

MySQL: Check if a table exists - version 3

select table_name as found
from information_schema.tables 
where table_schema = SCHEMA() 
  and table_name = '__table_name__'