查询mysql中非系统表的数据表行数

 

查询mysql中非系统表的数据表行数

且倒排

select table_schema,table_name,table_rows
from information_schema.tables
where table_schema != 'information_schema' and table_schema != 'mysql' and table_schema != 'performance_schema'
order by table_rows desc;

 

谢谢

 

其他例如查询单表所占空间大小、索引大小等方法参考:

【转】MySQL查看表占用空间大小(转)

posted @ 2021-01-29 16:14  宝山方圆  阅读(162)  评论(0编辑  收藏  举报