How to convert VARCHAR2 to BLOB inside Oracle 11g PL/SQL after ORA-06502

后端 未结 1 1457
梦如初夏
梦如初夏 2021-02-20 12:00

I have a function, that calculates hash value of big string! First of all I wrote a cursor T1_CUT, which can include variable count of SELECT statements, something like:

1条回答
  •  广开言路
    2021-02-20 12:39

    there is a function called utl_raw.cast_to_raw(vc) which transforms a varchar2 into a BLOB value.

    However, I recommend to use CLOB to store string values. BLOB has no character semantics at all, i.e., NLS_LANG settings are ignored.

    EDIT:

    if you want to transform VARCHAR2 to CLOB, simply use TO_CLOB

    0 讨论(0)
提交回复
热议问题