有沒有辦法將原始xml數據導入(或加載)到xml類型的列表中。DB2導入(原始)XML數據
<customerinfo Cid="1000"><name>Kathy Smith</name><addr country="Canada"><street>5 Rosewood</street><city>Toronto</city><prov-state>Ontario</prov-state><pcode-zip>M6W 1E6</pcode-zip></addr><phone type="work">416-555-1358</phone></customerinfo>
<customerinfo Cid="1001"><name>Kathy Smith</name><addr country="Canada"><street>25 EastCreek</street><city>Markham</city><prov-state>Ontario</prov-state><pcode-zip>N9C 3T6</pcode-zip></addr><phone type="work">905-555-7258</phone></customerinfo>
...
xml文檔的每一行都應該放在一行中。
import from C:\temp\test.xml OF DEL INSERT INTO XMLCOLUMN
DB2讀取XML文件正確的,但failes將其導入到的行...
Number of rows read = 6
Number of rows skipped = 0
Number of rows inserted = 0
Number of rows updated = 0
Number of rows rejected = 6
Number of rows = 6
任何想法?
一個想法可能是檢查實際的錯誤消息,正確解釋_why_這些行被拒絕。 – mustaccio
我基本上說它缺少一個xsd文件 –