I am using oracle version 11.2.0.4.0 I have a table FINMESSAGES with a CLOB column, columnname MESSAGE I want to extract an xml-element from the MESSAGE column and I did this with the following code (according to a solution in found here in this link)
SELECT
x.*
FROM
FINMESSAGES FM
left join XMLTable(
'/masterData'
passing FM.MESSAGE
columns
latestversion varchar2(6) path 'version'
) x on (1=1)
;
but I got the following error :
ORA-00932: inconsistent datatypes: expected - got CLOB
00932. 00000 - "inconsistent datatypes: expected %s got %s"
*Cause:
*Action:
Error at Line: 818 Column: 12
Who knows what I do wrong ? thank you for helping me out