mysql查找数据库中是否已经存在某张表

Sql:

select count(*) from information_schema.TABLES t where t.TABLE_SCHEMA ="数据库名" and t.TABLE_NAME ="数据库表名";

猜你喜欢

转载自www.cnblogs.com/lxcy/p/9856832.html