mysql查看指定数据库各表容量大小

一、概述 最近上线了一个项目,运行了一个月。想知道mysql库中,哪个表最大,有多少行数据。 由于库里面有上百张表,一个个查看比较费劲。   二、查询表大小 我需要查询的库名为:kite 因此sql语句为: select table_schema as '数据库', table_name as '表名', table_rows as '记录数', truncate(data_length/1024
相关文章
相关标签/搜索