BLOB(二进制)数据类型转换为varchar2类型
select utl_raw.cast_to_varchar2(dbms_lob.substr(FORMULA))
from SMARTREPORT.SYS_TABLE_COLS_CK_RULE;
varchar2类型转换为BLOB(二进制)数据类型
UPDATE SMARTREPORT.SYS_TABLE_COLS_CK_RULE SET FORMULA=TO_BLOB(UTL_RAW.CAST_TO_RAW(
REPLACE( utl_raw.cast_to_varchar2(dbms_lob.substr(FORMULA)) ,‘DATA_DATE=@dataDate AND’ ,’’)
))
WHERE ID=‘751457’