FETCH cursor
<< EXIT | FB 2.5 Language Reference | FOR EXECUTE STATEMENT ... DO >> 
<< EXIT | FB 2.1 Language Reference | FOR EXECUTE STATEMENT ... DO >> 
<< EXIT | FB 2.0 Language Reference | FOR EXECUTE STATEMENT ... DO >> 
FETCH cursor
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
- The 
ROW_COUNTcontext variable will be1if the fetch returned a data row and0if the end of the set has been reached. - You can do a positioned 
UPDATEorDELETEon the fetched row with theWHERE CURRENT OFclause. 
Example
See DECLARE ... CURSOR.
back to top of page 
<< EXIT | FB 2.5 Language Reference | FOR EXECUTE STATEMENT ... DO >> 
<< EXIT | FB 2.1 Language Reference | FOR EXECUTE STATEMENT ... DO >> 
<< EXIT | FB 2.0 Language Reference | FOR EXECUTE STATEMENT ... DO >> 







