目的:查询 riskmanage_cloud 库中各个表的数据量,并进行降序排序(以下sql直接修改,库名即可)
use information_schema; select table_name,table_rows from tables where TABLE_SCHEMA = 'riskmanage_cloud' order by table_rows desc;
查询结果如下: