比如查询数据库lts中所有表的记录数:
USE information_schema;
SELECT
table_name,
table_rows
FROM
TABLES
WHERE
TABLE_SCHEMA = 'lts'
ORDER BY
table_rows DESC;
效果如下:
作者:jiankunking 出处:http://blog.csdn.net/jiankunking
比如查询数据库lts中所有表的记录数:
USE information_schema;
SELECT
table_name,
table_rows
FROM
TABLES
WHERE
TABLE_SCHEMA = 'lts'
ORDER BY
table_rows DESC;
效果如下:
作者:jiankunking 出处:http://blog.csdn.net/jiankunking