什么时候在SQL Server中使用游标? [英] When do we use cursor in SQL server?

查看:86
本文介绍了什么时候在SQL Server中使用游标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请澄清...

当我们要使用游标时,首选哪种类型的游标? (例如:静态,转发等)

代替游标,我们必须使用while循环,那么游标将在哪种情况下最好?

Please clarify...

When we are going to use cursor and what type of the cursor is prefer? (Ex:Static,Forward etc)

Instead of cursor, we have to use while loop, so what kind of situation the cursor will best?

推荐答案

请参见此处 [此处 [
See here[^], here[^] and here[^]


这篇关于什么时候在SQL Server中使用游标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆