通过information_schema查询数据库是否存在某张表
select t.table_name from information_schema.TABLES t where t.TABLE_SCHEMA ='".$database."' and t.TABLE_NAME ='".$table."';
$database:查询的数据库
$table :查询表格
返回:若存在则返回表明,不存在返回为空
通过information_schema查询数据库是否存在某张表
select t.table_name from information_schema.TABLES t where t.TABLE_SCHEMA ='".$database."' and t.TABLE_NAME ='".$table."';
$database:查询的数据库
$table :查询表格
返回:若存在则返回表明,不存在返回为空