本文介绍了如何将xml数据导入到sql server 2008表中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个xml文件
命名为
data.xml
该文件中的数据,例如...
i have a xml file
named
data.xml
data in this file like...
<countryData>
<Country>
<CName>AMERICAN SAMOA</CName>
<CCode>AS</CCode>
</Country>
<Country>
<CName>ANDORRA</CName>
<CCode>AD</CCode>
</Country>
<Country>
<CName>ANGOLA</CName>
<CCode>AO</CCode>
</Country>
<Country>
</countryData>
现在我想在表中插入该数据
表定义类似..
id int
CName varchar(20)
CCode nchar(2)
那我怎样才能将xml数据导入到表中呢?
请帮助...
thnx
now i want to insert that data in table
Table Defination like..
Id int
CName varchar(20)
CCode nchar(2)
then how can i import xml data to Table.....
plese help...
thnx
推荐答案
这篇关于如何将xml数据导入到sql server 2008表中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!