MySQL查询数据库所有表的记录数排行

use information_schema;
SELECT
table_name, table_rows
FROM
tables
WHERE
TABLE_SCHEMA = ‘xxx’
ORDER BY table_rows ASC;