查看某用户下的表大小

------table 如果表有分区的话,查不出来。
 
select ts.BYTES / 1024 / 1024 || 'M', ts.segment_name
from user_segments ts right join all_tables t on t.TABLE_NAME = ts.segment_name and t.OWNER = 'XIR_MD'
where ts.segment_type = 'TABLE'

 

posted @ 2021-07-20 17:05  大龙挂了,公主在哪  阅读(74)  评论(0)    收藏  举报