forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
7.4 KiB
7.4 KiB
MOVE
Function
MOVE repositions a cursor without retrieving any data. MOVE works exactly like the FETCH command, except it only repositions the cursor and does not return rows.
Precautions
None
Syntax
1 | MOVE [ direction [ FROM | IN ] ] cursor_name; |
The direction clause specifies optional parameters.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | NEXT | PRIOR | FIRST | LAST | ABSOLUTE count | RELATIVE count | count | ALL | FORWARD | FORWARD count | FORWARD ALL | BACKWARD | BACKWARD count | BACKWARD ALL |
Parameter Description
MOVE command parameters are the same as FETCH command parameters. For details, see Parameter Description in FETCH.
Examples
Skip the first three rows of cursor1.
1 | MOVE FORWARD 3 FROM cursor1; |
Parent topic: DDL Syntax