Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to insert a very long string into a column of datatype 'LONG'

683484Jun 8 2009 — edited Jun 8 2009
Can anyone please tell me how can I insert a very long string into a column of datatype 'LONG'?
I get the error, ORA-01704: string literal too long when I try to insert the value into the table.

Since it is an old database, I cannot change the datatype of the column. And I see that the this column already contains strings which are very long.

I know this can be done using bind variables but dont know how to use it in a simple query.
Also is there any other way to do it?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 6 2009
Added on Jun 8 2009
14 comments
3,962 views