資料庫中所有表的行數

kuailewangzi1212發表於2014-10-25

select a.name,b.rows from sysobjects a,sysindexes b
where a.id=b.id
and xtype='U' AND (b.indid IN (0, 1))-- and rows>=8575
order by b.rows desc

相關文章