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

Oracle根据表的大小排序SQL语句

时间:2015-04-30 12:28:40      阅读:166      评论:0      收藏:0      [点我收藏+]

标签:

--按照数据行数排序
select table_name,blocks,num_rows
from dba_tables
where owner not like ‘%SYS%‘ and table_name not like ‘%$%‘ and num_rows is not null
order by num_rows desc;
--按照表占用的数据块
select table_name,blocks,num_rows
from dba_tables
where owner not like ‘%SYS%‘ and table_name not like ‘%$%‘ and blocks is not null
order by blocks desc;

Oracle根据表的大小排序SQL语句

标签:

原文地址:http://www.cnblogs.com/luckybird/p/4468437.html

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