我必须更新xml为252000 char的列。我试过这个How to insert/update larger size of data in the Oracle tables? 但我仍然有错误&字符串文字太长'。
我想用DBMS_LOB包编写一些代码,如下所示:
declare
c1 clob;
c2 varchar2(32000);
begin
c1 := 'abc';
c2 := 'text, which contains 32 000 characters';
dbms_lob.append(c1, c2);
c2 := 'some more text, which contains 32 000 characters';
dbms_lob.append(c1, c2);
c2 := 'some more text, which contains 32 000 characters';
dbms_lob.append(c1, c2);
c2 := 'some more text, which contains 32 000 characters';
dbms_lob.append(c1, c2);
c2 := 'some more text, which contains 32 000 characters';
dbms_lob.append(c1, c2);
c2 := 'some more text, which contains 32 000 characters';
dbms_lob.append(c1, c2);
c2 := 'some more text, which contains 32 000 characters';
dbms_lob.append(c1, c2);
c2 := 'last text, which contains 27 372 characters';
dbms_lob.append(c1, c2);
update table set d1= c1 where d2id=12;
end;
有没有其他方式编写查询,我可以将整个xml放在一个?