使用sql查询进行XMD数据操作

时间:2015-07-17 10:55:20

标签: xml oracle11g

我在oracle表中有以下XML数据:

<PivotSet><item><column name="ITEM">PID</column>
<column name="MAX(CURRENT_VALUE)">C009</column>
</item><item><column name="ITEM">Customer_Name</column>
<column name="MAX(CURRENT_VALUE)">XYZ Info</column>
</item><item><column name="ITEM">Backup_Frequency</column>
<column name="MAX(CURRENT_VALUE)">Every day</column>
</item><item><column name="ITEM">Version</column>
<column name="MAX(CURRENT_VALUE)">3.1.0</column>
</item><item><column name="ITEM">Patch_Details</column>
<column name="MAX(CURRENT_VALUE)">Critical Fixes</column>

我想以下列表格格式转换数据:

PID Customer_Name  Backup_Frequency Version Patch_Details
C009 XYZ Info      Every day        3.1.0   Critcal Fixes

请建议如何做到这一点。

0 个答案:

没有答案