在SQL Server中使用游标 [英] Using Cursors in SQL Server
本文介绍了在SQL Server中使用游标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在某些过程中使用游标.
我想知道我们是否使用游标,是否会花费更多时间?
iam一次更新涉及1000到50000条记录的海量数据
所以我想知道如何在使用游标的情况下最小化时间
问候
Nirmala Saravanan
Iam using cursor in some procedures.
i want to know if we use cursor,will it take more time consuming or not?
iam updating mass data involving more than 1000 to 50000 records at a time
so i want to know how to minimize the time if we use cursor
Regards
Nirmala Saravanan
推荐答案
一般来说,Cursor有其优点,但缺点更多.我在应用程序中使用了一种简单的方法,并处理大量数据.
检查此
http://d4dilip.wordpress.com /2010/04/15/avoid-use-of-sp_xml_removedocument-and-cursor-in-stored-procedure/ [
In general Cursor has its pros but more cons. I have using an simple approach in in my applicaiton and working with huge amount of data .
check this
http://d4dilip.wordpress.com/2010/04/15/avoid-use-of-sp_xml_removedocument-and-cursor-in-stored-procedure/[^]
这篇关于在SQL Server中使用游标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文