首页 > 技术文章 > mysql 查看数据库中所有表的记录数

xzhg 2017-02-27 11:22 原文

mysql 查看数据库中所有表的记录数

use information_schema;

select table_name,table_rows from tables

where TABLE_SCHEMA = 'testdb'

order by table_rows desc;

推荐阅读