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

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 选项创建游标的计划,则向后移动可能会失败。