mysql查询每张表有多少条记录

分类: best365网页版登录官网 发布时间: 2026-02-07 07:39:49 作者: admin 阅读: 9390

mysql查询每个表有多少条记录的方法:执行【select table_name,table_rows from tables where TABLE_SCHEMA = '数据库的名称';】语句即可。

mysql查询每个表分别有多少条记录的方法

执行如下SQL语句:

use information_schema;

select table_name,table_rows from tables where TABLE_SCHEMA = '数据库的名称' order by table_rows desc;