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

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

 

这里 table_schema = '数据库名字'

 

posted @ 2016-12-29 15:14  Angel挤一挤  阅读(278)  评论(0编辑  收藏  举报