SPI_scroll_cursor_fetch
Description
SPI_scroll_cursor_fetch
fetches some rows from a cursor. This is equivalent to the SQL commandFETCH.
Arguments
- Portalportal
portal containing the cursor
- FetchDirectiondirection
one ofFETCH_FORWARD,FETCH_BACKWARD,FETCH_ABSOLUTE orFETCH_RELATIVE
- longcount
number of rows to fetch forFETCH_FORWARD orFETCH_BACKWARD; absolute row number to fetch forFETCH_ABSOLUTE; or relative row number to fetch forFETCH_RELATIVE
Notes
See the SQLFETCH command for details of the interpretation of thedirection andcount parameters.
Direction values other thanFETCH_FORWARD may fail if the cursor's plan was not created with theCURSOR_OPT_SCROLL option.