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

--按照数据行数排序
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;

posted @ 2015-04-30 11:31  灿烂的鸟  阅读(3424)  评论(0编辑  收藏  举报