SELECT a.name,b.rows FROM sysobjects a
INNER JOIN sysindexes b ON a.id=b.id
WHERE b.indid IN(0,1) AND a.Type='u'
ORDER BY a.name
SQLServer查看一个库里所有表的数据量
最新推荐文章于 2024-07-10 16:50:01 发布
SELECT a.name,b.rows FROM sysobjects a
INNER JOIN sysindexes b ON a.id=b.id
WHERE b.indid IN(0,1) AND a.Type='u'
ORDER BY a.name