读书人

统计MySQL中某个数据库中有几多张表

发布时间: 2012-09-24 13:49:41 作者: rapoo

统计MySQL中某个数据库中有多少张表

mysql> SELECT count(*) TABLES, table_schema FROM information_schema.TABLES where table_schema = 'db_production' GROUP BY table_schema;+--------+-------------------+| TABLES | table_schema      |+--------+-------------------+|    169 | db_production | +--------+-------------------+


where table_schema = 你的数据库名

读书人网 >其他数据库

热点推荐