4 MOVE — position a cursor
8 MOVE [ direction ] [ FROM | IN ] cursor_name
10 where direction can be one of:
29 MOVE repositions a cursor without retrieving any data. MOVE works
30 exactly like the FETCH command, except it only positions the cursor and
33 The parameters for the MOVE command are identical to those of the FETCH
34 command; refer to FETCH for details on syntax and usage.
38 On successful completion, a MOVE command returns a command tag of the
42 The count is the number of rows that a FETCH command with the same
43 parameters would have returned (possibly zero).
48 DECLARE liahona CURSOR FOR SELECT * FROM films;
50 -- Skip the first 5 rows:
51 MOVE FORWARD 5 IN liahona;
54 -- Fetch the 6th row from the cursor liahona:
56 code | title | did | date_prod | kind | len
57 -------+--------+-----+------------+--------+-------
58 P_303 | 48 Hrs | 103 | 1982-10-22 | Action | 01:37
61 -- Close the cursor liahona and end the transaction:
67 There is no MOVE statement in the SQL standard.