MYSQL查各张表的行数

来源:互联网 发布:fedora17 yum无法使用 编辑:程序博客网 时间:2024/06/05 01:56
use information_schema;
select table_name,table_rows from tables
where TABLE_SCHEMA = '数据库名'
order by table_rows desc;
查询出来的是每张表的行数