with TableRecord(TableName,RecordCount) as
(
select o.name,i.rows
from sysobjects o,sysindexes i
where o.id=i.id and o.Xtype='U' and i.indid<2
)
select * from TableRecord order by tablename
SQL Server 统计一个数据库中各表记录数
最新推荐文章于 2022-08-10 17:31:40 发布