if(mysql_num_rows(mysql_query("SHOW TABLES LIKE '".TableName."'"))!=1){
echo 'The table :'.TableName.' not exist';
}else{
echo 'The table :'.TableName.' exist';
}
判断mysql数据库内指定的数据表是否存在
最新推荐文章于 2024-01-11 08:30:00 发布
if(mysql_num_rows(mysql_query("SHOW TABLES LIKE '".TableName."'"))!=1){
echo 'The table :'.TableName.' not exist';
}else{
echo 'The table :'.TableName.' exist';
}