Redrock Postgres 搜索 英文
版本: 9.3 / 9.4 / 9.5 / 9.6 / 10 / 11 / 12 / 13 / 14 / 15 / 16 / 17

SPI_cursor_move

SPI_cursor_move — 移动游标

概要

void SPI_cursor_move(Portal portal, bool forward, long count)

描述

SPI_cursor_move 跳过游标中的某些数量的行。这等同于 SQL 命令 MOVE 的子集(请参见 SPI_scroll_cursor_move 以获取更多功能)。

参数

门户 portal

包含游标的门户

布尔值 forward

向前移动为 true,向后移动为 false

count

需要移动的最大行数

注释

如果光标计划没有使用 CURSOR_OPT_SCROLL 选项创建,向后移动可能会失败。