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

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

 

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

 

posted @ 2019-06-03 17:11  胖头陀春天  阅读(8581)  评论(2编辑  收藏  举报