【MySQL】 查询某个数据库有多少张数据表

SELECT COUNT(*) TABLES, table_schema FROM information_schema.TABLES   
WHERE table_schema = 'performance' GROUP BY table_schema;  

这里 table_schema = '数据库名字'

原文地址:https://www.cnblogs.com/sxdcgaq8080/p/6233120.html