sqlserver统计所有表及表中记录数

SELECT a.name, b.rows

FROM sysobjects AS a INNER JOIN sysindexes AS b ON a.id = b.id

WHERE (a.type = 'u') AND (b.indid IN (0, 1))
posted @ 2021-06-04 08:28  haomengzhen  阅读(174)  评论(0编辑  收藏  举报