![]() | Programming Guide | ![]() |
Fetches the last page of rows associated with the default or named
SELECTcursor
DBMS [WITH CURSORcursor] CONTINUE_BOTTOM
WITH CURSORcursor- Name of declared
SELECTcursor. If the clause is not used, Panther uses the defaultSELECTcursor.
DBMSCONTINUE_BOTTOMfetches the last screen-full of rows from the cursor's select set. If the number of rows in the select set is less than the number of occurrences in the Panther variables, the request is ignored.Some database engines automatically support
DBMSCONTINUE_BOTTOM. Other engines require a temporary storage file created by the commandSTORE. If theDM_BAD_CMDerror return happens when the application executesDBMSCONTINUE_BOTTOM, the engine needs a scrolling file. For information about a specific engine, refer to "Database Drivers."
DBMS CONTINUE_BOTTOMshould not be used with aCATQUERY TO FILEcursor.
// Engines not requiring DBMS STOREproc select_all
DBMS DECLARE t_cursor FOR SELECT * FROM titles
DBMS WITH CURSOR t_cursor EXECUTE
returnproc get_last
DBMS WITH CURSOR t_cursor CONTINUE_BOTTOM
return// Engines requiring DBMS STOREproc select_all
DBMS DECLARE t_cursor FOR SELECT * FROM titles
DBMS WITH CURSOR t_cursor STORE FILE
DBMS WITH CURSOR t_cursor EXECUTE
returnproc get_last
DBMS WITH CURSOR t_cursor CONTINUE_BOTTOM
return
CONTINUE,CONTINUE_DOWN,CONTINUE_TOP,CONTINUE_UP,STORE
![]()
![]()
![]()
![]()