`
lxneng
  • 浏览: 188367 次
  • 性别: Icon_minigender_1
  • 来自: 火星
社区版块
存档分类
最新评论

统计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 = 你的数据库名
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics