当oracle数据表中有clob类型字段时候,insert或update的sql语句中,超过长度就会报错
ORA-01704: string literal too long
update xxx
set xxx = ' <div><h1>123</h1></div> '
where id= 100;
可以修改为
DECLARE
str varchar2(10000);
BEGIN
str := '<div><h1>123</h1></div>';
update xxx set xxx = str where id= 100;;
END;