mysql查询表的数据大小

use  information_schema

select concat(round(sum(DATA_LENGTH/1024/1024),2),'M'),concat(round(sum(INDEX_LENGTH/1024/1024),2),'M') from tables where table_schema=’mytest’ AND table_name=’test’; 

 

 

文章来源链接: http://www.cnblogs.com/diandiandidi/p/5582309.html

 

posted @ 2017-02-05 23:22  李修远  阅读(1014)  评论(0编辑  收藏  举报