先用
use information_schema;
SELECT sum(DATA_LENGTH+INDEX_LENGTH) as size,table_name FROM tables where table_schema='数据库名' group by table_name order by size desc;
哪些表数据量大就一目了然了噢
本文共 221 字,大约阅读时间需要 1 分钟。
先用
use information_schema;
SELECT sum(DATA_LENGTH+INDEX_LENGTH) as size,table_name FROM tables where table_schema='数据库名' group by table_name order by size desc;
哪些表数据量大就一目了然了噢
转载于:https://my.oschina.net/code33/blog/267697