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 = 你的数据库名
本文介绍了一种使用 MySQL 的方法来查询指定数据库中所有表的数量。通过执行 SQL 语句,可以快速获得 db_production 数据库中包含的表总数。
1713

被折叠的 条评论
为什么被折叠?



