...L Server2005 8.1.2 游标的用法 (1)声明游标(DECLARE CURSOR) (2)打开游标(OPEN CURSOR) (3)提取游标(FETCH CURSOR) (4)根据需要,对游标中当前位置的行执行修改操 作(更新或删除) (5)关闭游标(CLOSE CURSOR) (6)释放游标(DEALLOCATE ...
基于36个网页-相关网页
... ………open cursor 打开定义的光标 ………fetch cursor 从光标获取记录,赋于程序变量 ………close cursor 关闭光标 ...
基于1个网页-相关网页
fetch next from cursor 将游标向下移动一条
When the FETCH cursor statement fails and does not find another row to retrieve, the value of SQLSUCCESS is set to 0 and the WHILE LOOP ends.
当 FETCH 游标语句失败并且没有找到另一个要检索的行,SQLSUCCESS 的值被设置为 0 并且 WHILE LOOP 结束。
After the quantity check, the procedure tries to fetch next from the cursor, but if the rollback occurred, this causes an error because the rollback closed the cursor.
检查完数量后,过程将尝试从指针中获取下一个订单,但是如果发生了回滚,将会产生一个错误,因为回滚关闭了指针。
When it detects a potential update target, the federated system avoids using the block fetch feature in order to maintain the remote cursor position.
当检测到一个潜在的更新目标时,联邦系统避免使用块读取特性,以维护远程游标的位置。
应用推荐