查看 mysql 某个数据库有多少张表,sql如下
SELECT COUNT(*) TABLES,
table_schema FROM information_schema.TABLES
WHERE table_schema = 'database_name' GROUP BY table_schema;
其中,database_name 是要查看的数据库名
查看 mysql 某个数据库有多少张表,sql如下
SELECT COUNT(*) TABLES,
table_schema FROM information_schema.TABLES
WHERE table_schema = 'database_name' GROUP BY table_schema;
其中,database_name 是要查看的数据库名