How to insert clob data more than 4000 character in CLOB column

How to insert clob data more than 4000 character in CLOB column

We have table workingorder where one column document is CLOB data type. We need to insert XML file contain in this column. I has more than 4000 character. we can direcly insert the whole file contain using clob function. Below is the sample :

Insert into table (clob_column) values ( to_clob( 'value of 4000 characters' ) || to_clob( 'value of remaining 1500 characters' ));
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s