SQL Server 数据库查看各表的记录数
📅 2026/7/27 18:53:20
👁️ 阅读次数
📝 编程学习
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) descselect SUM(记录条数) as 总记录数 from( select top 10000 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 ) t1
编程学习
技术分享
实战经验