首页 > 数据库技术 > 详细

SQLSERVER 数据库查看各表的记录数

时间:2015-04-08 20:00:07      阅读:146      评论:0      收藏:0      [点我收藏+]

select   a.name as 表名,max(b.rows) as 记录条数   from   sysobjects   a   ,sysindexes   b     
where   a.id=b.id   and   a.xtype=‘u‘   
group   by   a.name   
order by max(b.rows) desc

SQLSERVER 数据库查看各表的记录数

原文:http://haihuiwei.blog.51cto.com/4789207/1630094

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!