mysql-查看单表数据容量

SELECT table_schema as '数据库',
table_name AS '表',
round(((data_length) / 1024 / 1024), 2) '数据量大小(MB)',
round(((index_length) / 1024 / 1024), 2) '索引量(MB)'
FROM information_schema.TABLES
where table_schema = 'yqn_message'
ORDER BY (data_length)
DESC;

posted @ 2020-06-14 21:12  莫己若  阅读(1038)  评论(0编辑  收藏  举报