use information_schema
select table_name,table_rows from tables
where TABLE_SCHEMA = '数据库名'
order by table_rows desc
查询出来的是每张表的行数
用count函数就可以查看。 比如表名叫test。 要查询表中一共有多少条记录 select count(*) from test如果按条件查询的话,就正常使用where条件即可 select count(*) from test where id=1欢迎分享,转载请注明来源:内存溢出
评论列表(0条)