Here is my table
MYTABLE(ID NUMBER(10),
DATATYPE VARCHAR2(2 BYTE),
XMLDATA LONG
)
Note1: I cannot alter this table Note2: I'm using Oracle 10g
Here is a sample of XMLDATA
<myxml version="1">
<node1>
<child1>value to get</child1>
</node1>
</myxml>
I tried xmltype() but it's not working with a LONG type (ORA-00997 illegal use of LONG type). Maybe I should copy XMLDATA values to a new table and convert to a CLOB then I can convert to xmltype and use EXTRACTVALUE()?
What is the best way to extract 'value to get' ?