SQL Server 查看表 数据行数

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))
ORDER BY b.rows DESC
posted on 2022-02-21 14:07  wakaka_wka  阅读(701)  评论(0编辑  收藏  举报