Available in: PSQL
Added in: 2.0
Description
Fetches the next data row from a cursor's result set and stores the column values in PSQL variables.
Syntax
FETCH cursorname INTO [:]varname [, [:]varname ...];
Notes
Example
See DECLARE ... CURSOR.