发布网友 发布时间:2022-04-07 16:15
共2个回答
懂视网 时间:2022-04-07 20:36
--按照数据行数排序
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语句
标签:
热心网友 时间:2022-04-07 17:44
SELECT t.segment_name,TO_CHAR(SUM(BYTES)/(1024*1024),'999G999D999') CNT_MB追答drop是删除表,并不是删除数据
truncate会释放表空间,drop也会,因为你drop以前,表就不存在了.....