I have an oracle column with a long data type that stores an xml. Now I want to perform the EXTRACT and EXTRACTVALUE functions on this column. For this purpose, I need to convert the long to xmltype. But when I do : xmltype.createxml(long_col_name), I get :illegal use of long datatype
I know long is deprecated, but it is legacy db.So...
EDIT: Upon the suggestion, i tried:
SELECT
EXTRACTVALUE( XMLTYPE (to_lob(long_col_name)), xpath_str) as value_date
FROM table_1;
I get:
[Error] Execution (2: 24): ORA-00932: inconsistent datatypes: expected - got LONG