Get the LENGTH of a LONG RAW

前端 未结 3 718
北荒
北荒 2020-12-01 21:39

I have a table with a column of data type LONG RAW. How do I determine the size (in bytes) of the data in this column?

If I call the LENGTH

3条回答
  •  广开言路
    2020-12-01 22:32

    One dirty trick, which might help if you're playing with a small test database: copy all data in a table with a BLOB instead of a LONG RAW.

    create table START(ID int not null, VAL long raw);
    ... inserts
    create table START_BLOB(ID int not null, VAL blob);
    insert into START_BLOB(ID,VAL) select ID,to_lob(VAL) from STAR;
    select ID,length(VAL) from START_BLOB;
    

提交回复
热议问题