码迷,mamicode.com
首页 > 数据库 > 详细

查询数据库表大小sql

时间:2016-02-18 13:45:03      阅读:202      评论:0      收藏:0      [点我收藏+]

标签:

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))
ORDER BY b.rows DESC

查询数据库表大小sql

标签:

原文地址:http://www.cnblogs.com/ziye/p/5197832.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!