首页 > 数据库技术 > 详细

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

时间:2015-04-30 12:28:32      阅读:299      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!