SELECT table_name, engine, table_rows as tbl_rows, avg_row_length as rlen, floor((data_length + index_length) / 1024 / 1024) as allMB, floor((data_length) / 1024 / 1024) as dMB, floor((index_length) / 1024 / 1024) as iMB FROM information_schema.tables WHERE table_schema = database() AND engine IS NOT NULL ORDER BY table_name , (data_length + index_length) desc;こちらから拝借しました。
http://d.hatena.ne.jp/sho-yamasaki/20120405/1333640589
0 件のコメント:
コメントを投稿