I'm trying to insert a record into an Oracle database using PL/SQL Developer.
I have a CLOB datatype in my table and the XML that I want to save has around about 60000 characters.
When I directly try to do it using an insert statement, it gives me the ORA-01704 error. So I read on forums and tried to do it using bind variables, but I am still getting the 'string literal too long' message.
My bind variable code is:
declare
vClobVal varchar2(32767) := 'String of 60000 characters';
update table_name set column where clause.
end;
I understand that varchar2(32767)
has limit of 32767 characters. But what should I do when I have to insert 60000 characters? I have also tried with a CLOB variable:
declare
vClobVal clob := 'String of 60000 characters';
update table_name set column where clause.
end;
This also gives me the same error.