select table_name,table_rows from information_schema.tables where TABLE_SCHEMA = '数据库名称' order by table_rows desc;
mysql怎么查询数据库每个表有多少条记录
最新推荐文章于 2023-12-19 18:32:33 发布
本文介绍了一种使用SQL语句查询数据库中所有表的大小的方法,通过从information_schema.tables表中选择table_name和table_rows字段,并按照table_rows字段降序排列,帮助数据库管理员快速了解数据库表的大小分布。
2807

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



