mysql统计某一个数据库中有几张表

一、当存在information_schema时 

SELECT count(*) TABLES, table_schema FROM information_schema.TABLES

where table_schema = 'test' GROUP BY table_schema;
posted @ 2015-11-27 17:14  preditctfuture  阅读(397)  评论(0编辑  收藏  举报