SQL Server 统计一个数据库中各表记录数

来源:互联网 发布:淘宝打单员是做什么的 编辑:程序博客网 时间:2024/05/27 01:16
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


原创粉丝点击