select a.name as '表名',b.rows as '表数据行数'
from sysobjects a inner join sysindexes b
on a.id = b.id
where a.type = 'u'
and b.indid in (0,1)
--and a.name not like 't%'
order by b.rows desc

posted on 2022-05-11 14:00  芝麻的西瓜  阅读(391)  评论(0编辑  收藏  举报