查询数据库各表的数据条数

 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 

猜你喜欢

转载自blog.csdn.net/qq_23145857/article/details/80437261