我如何比较两个光标的值 [英] How do i compare the values of Two Cursors
本文介绍了我如何比较两个光标的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何比较两个游标的值并在值匹配时进行更新操作.我在两个游标中都使用Joins(联接查询).请为此问题提供适当的解决方案(工作过程).
在此先感谢
How do i compare the values of Two Cursors and do update operation if the values matches.I am using Joins(Join query) in both the cursors.Please provide a appropriate solution(Working procedure) for this issue.
Thanks in advance
推荐答案
我假设您要运行一个游标,对于每条记录运行另一个游标,请检查值是否匹配.
如果是o,则需要将第二个游标嵌套在第一个游标中,并将update语句包含在第二个游标中
I assune you want to run a cursor and for every record run another cursor o check if the values match.
If this is o you need to nest the second cursor in the first and include your update statement within the second cursor
这篇关于我如何比较两个光标的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文