-- 每張表的大小 參考網址:http://www.oschina.net/question/12_3673
-- DATA_FREE 大於零表示有碎片
-- 在我們的項目中,生產環境一律采用獨立的表空間,
-- http://www.educity.cn/wenda/403588.html
select table_name,table_rows,concat(round(DATA_LENGTH/1024/1024, 2), 'MB') as size,DATA_FREE
from TABLES where table_schema='dsideal_db' order by DATA_LENGTH desc