Notes
Note that the FORWARD and BACKWARD keywords are
PostgreSQL extensions.
The SQL92 syntax is also supported, specified
in the second form of the command. See below for details
on compatibility issues.
Updating data in a cursor is not supported by
PostgreSQL,
because mapping cursor updates back to base tables is
not generally possible, as is also the case with VIEW updates.
Consequently,
users must issue explicit UPDATE commands to replace data.
Cursors may only be used inside of transactions because
the data that they store spans multiple user queries.
Use
MOVE
to change cursor position.
DECLARE
will define a cursor.
Refer to
BEGIN,
COMMIT,
and
ROLLBACK
for further information about transactions.