My table has one clob column and one blob column. I need to insert data into it through insert statements.
The length of data to be inserted is more than 4000 chars.
When I do export of insert statements is sql navigator I get empty values.
INSERT INTO mytable VALUES('REQUEST',EMPTY_CLOB(),EMPTY_BLOB());
I also tried to do insert it data like this.I have added only example data to be inserted.The actual data to be inserted is large.
INSERT INTO mytable VALUES('REQUEST2','{"customer"asxcbasjbab....:}',NULL);
Can some one tell me best way to insert data into table in these scenario.
Or anyway to do export and import this data will also help.
Best Answer
In SQL, the limit is 4,000 characters. Using straight SQL like that, without a bind variable, you'll be limited to 4,000 characters. Steps to insert lob values :
1) Create a table and name it TBL_CLOB with 2 fields:
2) Create a stored procedure and name it P_CLOB with the following code:
Makes sense ?