postgresql_16:7.1.147 FETCH
PostgreSQL 16 > Reference > SQL Commands > FETCH
retrieve rows from a query using a cursor
FETCH [ 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
FETCH [ 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
Subsections
- postgresql_16:7.1.147.1 Description
- postgresql_16:7.1.147.2 Parameters
- postgresql_16:7.1.147.3 Outputs
- postgresql_16:7.1.147.4 Notes
- postgresql_16:7.1.147.5 Examples
- postgresql_16:7.1.147.6 Compatibility
- postgresql_16:7.1.147.7 See Also