当前位置:Gxlcms > 数据库问题 > mysql查询表的数据大小

mysql查询表的数据大小

时间:2021-07-01 10:21:17 帮助过:29人阅读

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

 

mysql查询表的数据大小

标签:use   concat   where   log   http   nbsp   from   href   sum   

人气教程排行