📜  oracle db 获取表大小 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:06.199000             🧑  作者: Mango

代码示例1
select segment_name, sum(bytes)/1024 KB 
from user_segments 
where segment_type='TABLE' and segment_name in (SELECT TABLE_NAME FROM ALL_TABLES) 
group by segment_name order by KB desc;