码迷,mamicode.com
首页 > 数据库 > 详细

mysql查询表的数据大小

时间:2017-02-06 00:11:23      阅读:201      评论:0      收藏:0      [点我收藏+]

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

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   

原文地址:http://www.cnblogs.com/lixiuyuan999/p/6368855.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!