0
我已經將一個xml導入到oracle中,我正在使用列類型Xmltype。Oracle錯誤ora-19025 Xmltype
這裏是XML的結構:
<Release>
<ReleaseId>
<GRid>A10320WA0003483489</GRid>
<ICPN IsEan="false">3610151317086</ICPN>
<CatalogNumber Namespace="UPC">3610151317086</CatalogNumber>
<ProprietaryId Namespace="ADAM_ID">551247405</ProprietaryId>
</ReleaseId>
<ReleaseReference>R551247405</ReleaseReference>
<ReferenceTitle>
<TitleText>Tony Bennett: 101 Hits - I Left My Heart in San Francisco</TitleText>
</ReferenceTitle>
<ReleaseResourceReferenceList>
<ReleaseResourceReference>A551248137</ReleaseResourceReference>
<ReleaseResourceReference>A551248136</ReleaseResourceReference>
<ReleaseResourceReference>A551248070</ReleaseResourceReference>
<ReleaseResourceReference>A551248074</ReleaseResourceReference>
<ReleaseResourceReference>A551248041</ReleaseResourceReference>
<ReleaseResourceReference>A551247836</ReleaseResourceReference>
</ReleaseResourceReferenceList>
這裏是選擇THA我使用
select extractvalue(value (sr),'*/ReleaseId/ISRC') as ISRC
,extractvalue(value (sr),'*/ReleaseId/GRid')as GRid
,extractvalue(value (sr),'*/ReleaseId/ICPN')as ICPN
,extractvalue(value (sr),'*/ReleaseId/CatalogNumber')as CatalogNumber
,extractvalue(value (sr),'*/ReleaseId/ProprietaryId')as ProprietaryId
,extractvalue(value (sr),'*/ReferenceTitle/TitleText')as TitleText
,extractvalue(value (sr),'*/ReleaseType')as ReleaseType
,extractvalue(value (st),'*/ReleaseResourceReference')as teste
from xml_ddex x,
table(xmlsequence (extract(dados, '*/ContainedReleaseList/Release')))sr,
table(xmlsequence(extract(value(sr),'*/ReleaseResourceReferenceList')))st
誰能幫助我?由於
周杰倫,讓我看看你的預期的結果。我無法識別你的問題中有哪些「dados」和「xml_ddex」。 – nop77svk 2014-10-11 07:26:05
...我需要知道你想達到什麼目的。顯然,'teste'別名列是你的問題,但是這並不能告訴我你需要什麼作爲查詢輸出。 – nop77svk 2014-10-11 07:44:22