0
を使用してCLOBフィールドから抽出xmlタグの値は、私はDBフィールドに格納されている次のXMLデータを持っている:オラクル
<FM>
<SectionsList>
<Section>
<SectionId>Section_one</SectionId>
</Section>
<Section>
<SectionId>Section_two</SectionId>
<Fields>
<FormField>
<FieldId>REQUESTID</FieldId>
<FieldValue>ABC1234</FieldValue>
</FormField>
<FormField>
<FieldId>REQUESTNAME</FieldId>
<FieldValue>JASMINE</FieldValue>
</FormField>
</Fields>
</Section>
</SectionsList>
</FM>
私はセクションでは、のSectionId
を持っていることからREQUESTNAME
のFieldId
を持つFormField
タグのFieldValue
の値を取得したいですSection_two
。結果はJASMINE
である必要があります。
私はとしてOracleでクエリを実行しています:
SELECT EXTRACTVALUE(xmltype(req_details),
'/FM/SectionsList/Section[@SectionId="Section_two"]/Fields/FormField/FieldValue[@FieldId="REQUESTNAME"]')
from table
しかし、結果はNULLです。どうすればOracleの価値を引き出すことができますか?
パーフェクト...ありがとうございます:) – user2114865