MySQL获取Largest表TopN 获取数据库记录数/数据大小/索引大小排名前N的表 1234567891011121314SELECT TABLE_SCHEMA AS '数据库', TABLE_NAME AS '表名', TABLE_ROWS AS '记录数', TABLE_COMMENT AS '建表说明', TRUNCATE ( DATA_LENGTH / 1024 / 1024, 2 ) AS '数据容量(MB)', TRUNCATE ( INDEX_LENGTH / 1024 / 1024, 2 ) AS '索引容量(MB)' FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'meisoodev' ORDER BY TABLE_ROWS DESC LIMIT 10; https://dataedo.com/kb/query/mysql/list-10-largest-tables https://developer.aliyun.com/ask/283493 DevOps #MySQL #information_schema MySQL获取Largest表TopN https://www.boer.xyz/2018/03/08/mysql-record-topN-tables/ 作者 boer 发布于 2018年3月8日 许可协议 主机初始化的那些事儿 上一篇 各种镜像源加速 下一篇 Please enable JavaScript to view the comments