How to insert more than 4000 characters to CLOB type column?
--create test table s
create table s
(
a clob
);
insert into s values('>4000 char')
Results in an error:
ORA-01704:the string too long.
When I want to insert string >4000 for one time, how to do it? Is it be possible?
When I read the Oracle reference, CLOB
can save max 4GB(Gigabyte)?
Here is an example:
The maximum for one time insertion is 4000 characters (the maximum string literal in Oracle). However you can use the lob function
dbms_lob.append()
to append chunks of (maximum) 4000 characters to the clob: