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

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

问题描述

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

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

推荐答案

它创建了一个 cursor 用于查询,它允许您迭代结果集而无需立即获取整个结果.可滚动游标,特别是允许向后迭代的游标.

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天全站免登陆