Error : ORA-01704: string literal too long

后端 未结 4 946
梦毁少年i
梦毁少年i 2020-11-29 06:58

While I try to set the value of over 4000 characters on a field that has data type CLOB, it gives me this error :

ORA-01704: string lite

4条回答
  •  渐次进展
    2020-11-29 07:57

    What are you using when operate with CLOB?

    In all events you can do it with PL/SQL

    DECLARE
      str varchar2(32767);
    BEGIN
      str := 'Very-very-...-very-very-very-very-very-very long string value';
      update t1 set col1 = str;
    END;
    /
    

    Proof link on SQLFiddle

提交回复
热议问题