Oracle - How do I get the actual size of a specific ROW?

后端 未结 3 1389
挽巷
挽巷 2020-12-29 09:00

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

3条回答
  •  鱼传尺愫
    2020-12-29 09:25

    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;
    

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

提交回复
热议问题