Oracle-如何获取特定ROW的实际大小? [英] Oracle - How do I get the actual size of a specific ROW?

查看:75
本文介绍了Oracle-如何获取特定ROW的实际大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能吗?或者至少我正在寻找一个表中所有行的大小的列表.

Is this possible? Or at least I'm looking to have a list of the size of all rows in a table.

推荐答案

select vsize(col1) + vsize(col2) + vsize(col3) + 
long_raw_length_function(long_col) + DBMS_LOB.GETLENGTH(blob_col) 
from table 
where id_col = id_val;

有关 long_raw_length_function 的信息,请参见此获取长RAW的长度

for the long_raw_length_function, see this Get the LENGTH of a LONG RAW

这篇关于Oracle-如何获取特定ROW的实际大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆