This content has been marked as final. Show 4 replies
126.96.36.199.0 (Although I will need to do this on my work instance also which is 10.2.0.4)That's gonna be a problem...
Direct CLOB projection is supported starting with 188.8.131.52, using XMLTable or XMLCast/XQuery functions (extractvalue, extract, xmlsequence are deprecated now) :
On prior versions, implicit conversions will occur to VARCHAR2 datatype, hence the limitation observed.
SELECT x.* FROM test_xml t , XMLTable( '/*/record' passing t.xml_data columns description clob path 'description' ) x ;
AFAIK you have two options on 10.2.0.4 :
1) Using Object-Relational storage, with the xdb:SQLType="CLOB" annotation.
2) Using the following trick :
SELECT dbms_xmlgen.convert(x.description.getClobVal(), 1) as description FROM test_xml t , XMLTable( '/*/record' passing t.xml_data columns description xmltype path 'description/text()' ) x ;