I want to insert a large XML string into my Table. My table is test_id(xml_column XMLType).
When I insert the values, it returns 'string literal too long' error. I surf on the net about this, everyone says to change the datatype to CLOB. But i want to store the same datatype(XMLType).
Is there any possibilities to do that. Can anyone help me to fix this.
Here is my code:
insert into TEST_ID(xml_column) values('<root>
<DatabaseLog>
<DatabaseLogID>1</DatabaseLogID>
<PostTime>2012-03-14T13:14:18.803</PostTime>
...
<object>StoreSurveySchemaCollection</object>
</DatabaseLog>
</root>');
The error code is:
PLS-00172: string literal too long
Thanks in advice.