首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

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

2012-09-24 
统计MySQL中某个数据库中有多少张表mysql SELECT count(*) TABLES, table_schema FROM information_schem

统计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 = 你的数据库名

热点排行