多彩编程 多彩编程MZPH · CODE BLOG
ARTICLE DETAIL

文章详情

深耕前端与后端开发技术的一线实战笔记与踩坑复盘。

SQL Server 数据库查看各表的记录数

SQL Server 数据库查看各表的记录数 select a.name as 表名,max(b.rows) as 记录条数 from sysobjects a ,sysindexes b where a.idb.id and a.xtypeu 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.idb.id and a.xtypeu group by a.name order by max(b.rows) desc ) t1
返回列表