Home
How To ...
 

Cry How To...


Obtain record field size information


To see the minimum, average and maximum storage requirements of a field in a table:

Select min(vsize(<field>)),
    avg(vsize(<field>)),
    max(vsize(<field>)) from <table>;

Note: The ‘vsize’ function cannot be used on LONG/BLOB columns. For these instead use: ‘dbms_lob.getlength(<blob-field>)’.