未加工の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ドキュメントの各行は、1行に配置する必要があります。
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
?
実際には、それらの行が拒否された正確な説明を確認することが考えられます。 – mustaccio
私は基本的にそれがxsdファイルがないことを言います –