mysql数据库表记录数

时间:2022-03-17 06:40:54

经常用到,在这里记录一下,使用的命令


use information_schema;

select table_name,table_rows from tables
where TABLE_SCHEMA = '数据库名'
order by table_rows desc;
查询出来的是每张表的行数