更新时间:2021-10-22 15:15:11
有一个名为utl_raw.cast_to_raw(vc)
的函数,该函数将varchar2
转换为BLOB
值.
there is a function called utl_raw.cast_to_raw(vc)
which transforms a varchar2
into a BLOB
value.
但是,我建议使用CLOB
来存储字符串值. BLOB
完全没有字符语义,即NLS_LANG
设置被忽略.
However, I recommend to use CLOB
to store string values. BLOB
has no character semantics at all, i.e., NLS_LANG
settings are ignored.
如果要将VARCHAR2
转换为CLOB
,只需使用TO_CLOB
if you want to transform VARCHAR2
to CLOB
, simply use TO_CLOB