在sql2005中迭代xml

编程入门 行业动态 更新时间:2024-10-26 22:20:19
本文介绍了在sql2005中迭代xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想在xml中循环每个项目。 在我的方案中我的xml包含 10个帐号。 在我的存储过程中我一次需要每个帐号,并且必须进行其他操作并插入另一个表。这意味着它将循环10次。 如果有人知道请让我知道。

i want to loop each item in xml . in my scenario my xml containing 10 account numbers. in my stored procedure i need each account number at a time and have to do other operation and inserting into another table.that means 10 times it will loop. if anyone know please let me know.

推荐答案

您需要将xml数据插入表中然后在这张新桌子上执行你的操作。 根据你的过程,你可能需要临时表或永久表。如果它是永久性的,你可以在你的过程最终确定时截断表,而不是有不必要的数据。 希望这有帮助。 Hi, You will need to insert your xml data into a table and then perform your operation on this new table. Depending on your process you may need a temp table or permanent table. If it is permanent you can truncate table when your process is finalised not to have unnecessary data. Hope this helps.

更多推荐

在sql2005中迭代xml

本文发布于:2023-07-10 08:17:29,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1089808.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:迭代   xml

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!