バージョンごとのドキュメント一覧

SPI_cursor_move

SPI_cursor_move <refpurpose>move a cursor</refpurpose> — カーソルを移動する

概要

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

説明

<title>Description</title>

<function>SPI_cursor_move</function> skips over some number of rows in a cursor. This is equivalent to a subset of the SQL command <command>MOVE</command> (see <function>SPI_scroll_cursor_move</function> for more functionality). SPI_cursor_moveはカーソル内で、数行を飛ばします。 これはMOVE SQLコマンドと部分的に等価です。 (詳細機能についてはSPI_scroll_cursor_moveを参照してください。)

引数

<title>Arguments</title>
Portal portal

portal containing the cursor カーソルを持つポータル

bool forward

true for move forward, false for move backward 前方方向の移動の場合、真。後方方向の場合は偽。

long count

maximum number of rows to move 移動する最大行数。

注釈

<title>Notes</title>

Moving backward may fail if the cursor's plan was not created with the <symbol>CURSOR_OPT_SCROLL</symbol> option. カーソルの計画がCURSOR_OPT_SCROLLオプション付きで作成されなかった場合、後方方向への移動は失敗する可能性があります。