// 判断表是否存在
$db_info = explode ( '.', $table );
$db_name = $db_info [0];
$t_name = $db_info [1];
$t_sql = "SHOW TABLES from $db_name LIKE '{$t_name}'";
$re = $this->mysql->getAll ( $t_sql );
// 判断表是否存在
$db_info = explode ( '.', $table );
$db_name = $db_info [0];
$t_name = $db_info [1];
$t_sql = "SHOW TABLES from $db_name LIKE '{$t_name}'";
$re = $this->mysql->getAll ( $t_sql );
转载于:https://www.cnblogs.com/pyspang/p/11098870.html