查询mysql各个表的数据量
2017-11-23 本文已影响9人
老胡聊聊天
--查询出来的是每张表的行数
use information_schema;
select table_name,table_rows from tables
where TABLE_SCHEMA = '数据库名'
order by table_rows desc;
![](https://img.haomeiwen.com/i8179604/92d77079eafb7433.png)
--查询出来的是每张表的行数
use information_schema;
select table_name,table_rows from tables
where TABLE_SCHEMA = '数据库名'
order by table_rows desc;