我正在尝试使用以下查询提取 BLOB 变量。
select utl_raw.cast_to_varchar2(BLOB_VAR) from Dual
但是我收到一个错误。
ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (actual: 4060, maximum: 2000)
您能否让我们提取大于 4000 个字符的 BLOB 值,因为 varchar2 的限制为 4000。
我尝试使用 concat 选项
select concat(concat(utl_raw.cast_to_varchar2(dbms_lob.substr(BYTES_,2000,1)),utl_raw.cast_to_varchar2(dbms_lob.substr(BYTES_,2000,2001))),utl_raw.cast_to_varchar2(dbms_lob.substr(BYTES_,2000,4001)))from ACT
但我得到这个错误
01489. 00000 - result of string concatenation is too long```
Is there any way to get a longer string value?