Hello All:
I'm tryoing to insert a large string in a clob column using sqlplus and the insert statement:
INSERT INTO MYTABLE VALUES( 'large string');
and I get an error saying 'string literal too long'.
Is there anyway to solve this?
thanks
Writing into CLOB column looks a little bit tricky.
The usual insert string works if its length is less than 2000 b.
In case it exceeds, I guess we have to follow a work-around.
I have not worked on CLOBs as yet. But you may have to use the built-in empty_clob() to initialize the CLOB ,and dbms_lob.write (or writeappend) somehow.
May be somebody can enlighten us further on this.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.