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;

人的潜力是可以激发的,比如说你给我50斤的砖我可能拎不动,但你要是给我100斤的人民币我肯定拎起来就跑。
原文地址:https://www.cnblogs.com/mojiruo/p/13127008.html