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