什么是PDO可滚动游标? [英] What is PDO scrollable cursor?

查看:119
本文介绍了什么是PDO可滚动游标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用可滚动游标获取行"到底是什么?

What is "Fetching rows with a scrollable cursor" all about?

推荐答案

它将创建一个光标作为查询,它使您可以遍历结果集,而无需一次获取整个结果.具体来说,可滚动游标是一种允许向后迭代的游标.

It creates a cursor for the query, which allows you to iterate over the result set without fetching the whole result at once. A scrollable cursor, specifically, is one that allows iterating backwards.

使用示例:您可以向前滚动直到找到所需的记录,然后再迭代以获取以前的记录(如果需要的话).

Example use: You can scroll forward until you find the record you need and iterate back to fetch the previous records, if you need them, too.

这篇关于什么是PDO可滚动游标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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