On this page
SPI_cursor_move
SPI_cursor_move —移动光标
Synopsis
void SPI_cursor_move(Portal portal, bool forward, long count)
Description
SPI_cursor_move
跳过游标中的某些行。这等效于 SQL 命令MOVE
的子集(有关更多功能,请参见SPI_scroll_cursor_move
)。
Arguments
Portal portal
- 包含光标的门户
bool forward
- 向前移动为 true,向后移动为 false
long count
- 可移动的最大行数
Notes
如果没有使用CURSOR_OPT_SCROLL
选项创建光标的计划,则向后移动可能会失败。