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)) and b.rows<50 and b.rows>20
order by a.name, b.rows desc;
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)) and b.rows<50 and b.rows>20
order by a.name, b.rows desc;