mysql查看每张表的空间使用情况

use information_schema;
select table_name,concat(round(DATA_LENGTH/1024/1024,2),'MB') as data
,concat(round(index_length/1024/1024,2),'MB') as indexweight 
 from TABLES where table_schema='dsideal_db' order by  DATA_LENGTH desc;

 

posted @ 2014-11-21 17:11  糖豆爸爸  阅读(435)  评论(0)    收藏  举报
Live2D