ITPub博客

首页 > 数据库 > MySQL > R1-012 MySQL查看表大小

R1-012 MySQL查看表大小

原创 MySQL 作者:路途中的人2012 时间:2017-03-01 20:07:36 0 删除 编辑
select table_name,table_size
from
(select table_name,(data_length+index_length)/1024/1024/1024 table_size
from
information_schema.tables ) t1
order by table_size
desc limit 10;

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29067253/viewspace-2134534/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: R1-001 echo.sh
请登录后发表评论 登录
全部评论

注册时间:2015-01-08

  • 博文量
    495
  • 访问量
    768417