星空网 > 软件开发 > 数据库

存储过程 保存 xml 数据

存储过程 保存 xml 数据


示例:

.net

DataSet ds=....

string

SQL :

DECLARE @idoc int; EXEC sp_  N'<User>\r\n
 <Dept>\r\n   
  <ItemID>1</ItemID>\r\n  
  <EmpID>123</EmpID>\r\n   
  <Type>0</Type>\r\n
</Dept>\r\n
 <Dept>\r\n   
    <ItemID>2</ItemID>    \r\n    
    <EmpID>123</EmpID>\r\n   
    <Type>1</Type>\r\n  
 </Dept>\r\n
</User>';
  INSERT INTO A (ItemID,EmpID,Type)
   SELECT ItemID,EmpID,Type FROM OPEN   WITH (ItemID int,EmpID nvarchar(50),Type int);

 




原标题:存储过程 保存 xml 数据

关键词:xml

xml
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

Wish花钱烧PB都买不来流量,为何?:https://www.ikjzd.com/articles/20159
发展潜力巨大!该地区2023年电商市场规模将达64亿美元:https://www.ikjzd.com/articles/20161
跨境出口新突破:亚马逊海外站点上线国内知名品牌:https://www.ikjzd.com/articles/20166
博鳌亚洲论坛分论坛:跨境电商如何跨越全球化中的新挑战:https://www.ikjzd.com/articles/20170
亚马逊价格新政下的产品定价策略!:https://www.ikjzd.com/articles/20171
不参加就封店?亚马逊支付新计划出台:https://www.ikjzd.com/articles/20173
皇帝的皇宫=:https://www.vstour.cn/a/363188.html
海南岛琼海市旅游景点 琼海市的旅游景点:https://www.vstour.cn/a/363189.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流