好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

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;

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

标签:

查看更多关于Oracle根据表的大小排序SQL语句的详细内容...

  阅读:27次