use information_schema;select table_name,table_rows from tables where TABLE_SCHEMA = 'databaseName' order by table_rows desc;
本文介绍了如何使用SQL查询特定数据库中的表名及其记录数量,并按照记录数量进行降序排列,便于快速查找和分析数据库结构。
use information_schema;select table_name,table_rows from tables where TABLE_SCHEMA = 'databaseName' order by table_rows desc;

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