比如查询数据库lts中所有表的记录数:
USE information_schema;
SELECT
table_name,
table_rows
FROM
TABLES
WHERE
TABLE_SCHEMA = 'lts'
ORDER BY
table_rows DESC;
效果如下:
作者:jiankunking
MySQL 查询所有表中的记录数
阅读 133
2022-07-27
比如查询数据库lts中所有表的记录数:
USE information_schema;
SELECT
table_name,
table_rows
FROM
TABLES
WHERE
TABLE_SCHEMA = 'lts'
ORDER BY
table_rows DESC;
效果如下:
作者:jiankunking
相关推荐
精彩评论(0)