Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

MOVE

MOVE

MOVE — position a cursor

Synopsis


MOVE [ direction ] [ FROM | IN ] cursor_name

where direction can be one of:

    NEXT
    PRIOR
    FIRST
    LAST
    ABSOLUTE count
    RELATIVE count
    count
    ALL
    FORWARD
    FORWARD count
    FORWARD ALL
    BACKWARD
    BACKWARD count
    BACKWARD ALL

Description

MOVE repositions a cursor without retrieving any data. MOVE works exactly like the FETCH command, except it only positions the cursor and does not return rows.

The parameters for the MOVE command are identical to those of the FETCH command; refer to FETCH for details on syntax and usage.

Outputs

On successful completion, a MOVE command returns a command tag of the form

The count is the number of rows that a FETCH command with the same parameters would have returned (possibly zero).

Examples

Compatibility

There is no MOVE statement in the SQL standard.

See Also

CLOSE, DECLARE, FETCH


原文:PostgreSQL 15.19 Documentation(英文原文,待翻譯)

Last updated

Was this helpful?