赞
踩
第四部分、游标相关知识讲解
(一)Fast Forward Only(快速只进)游标分析
Microsoft SQL Server 实现了一种称作fast forward only游标的性能优化。http://msdn.microsoft.com/zh-cn/library/ms187502.aspx
当遇到下面情形时,Fast Forward-only游标会隐式转换为其他类型
<!--[if !supportLists]-->1. <!--[endif]-->当SELECT语句连接包含trigger table(INSERTED/DELETED)的一个或多个表,游标被转换成static类型。
<!--[if !supportLists]-->2. <!--[endif]-->当SELECT语句查阅text、ntext或image列,如果SQL Server OLE DB访问接口或使用了SQL Server ODBC驱动器,游标被转换成dynamic类型。
<!--[if !supportLists]-->3. <!--[endif]-->当Fast Forward-only游标不是只读的,它会被转换成dynamic游标。动态游标是可以用来update当前滚动到的数据行并将更新回写到table中的。
<!--[if !supportLists]-->4. <!--[endif]-->当SELE
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。