SQLSERVER 数据库查看各表的记录数

来源:这里教程网 时间:2026-03-02 11:17:27 作者:

点击(此处)折叠或打开

    select a.name as 表名,max(b.rows) as 记录条数 from sysobjects a ,sysindexes b
      where a.id=b.id and a.xtype='u'
    group by a.name
    order by max(b.rows) desc

相关推荐