Extract data from XML Clob using SQL from Oracle Database

后端 未结 2 1996
北海茫月
北海茫月 2020-12-14 18:37

I want to extract the value of Decision using sql from table TRAPTABCLOB having column testclob with XML stored as clob.

Sample XML as below.

               


        
2条回答
  •  忘掉有多难
    2020-12-14 19:11

    Try

    SELECT EXTRACTVALUE(xmltype(testclob), '/DCResponse/ContextData/Field[@key="Decision"]') 
    FROM traptabclob;
    

    Here is a sqlfiddle demo

提交回复
热议问题