查询数据库中所有表名表中数据量(不可靠:与数据库所用引擎有关)
select table_name,table_rows from information_schema.tables where table_schema='databasename' order by table_rows desc;
mysql 查询所有库中所有表 表中大概记录数
最新推荐文章于 2025-04-29 09:22:12 发布
查询数据库中所有表名表中数据量(不可靠:与数据库所用引擎有关)
select table_name,table_rows from information_schema.tables where table_schema='databasename' order by table_rows desc;