查询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查看表占用空间大小(转)

原文地址:https://www.cnblogs.com/zhzhang/p/14345569.html