运维网's Archiver
论坛
›
SQL Server
› SQLSERVER 数据库查看各表的记录数
32rwe111
发表于 2015-4-9 08:45:46
SQLSERVER 数据库查看各表的记录数
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
页:
[1]
查看完整版本:
SQLSERVER 数据库查看各表的记录数