Programming Guide |
Fetches the last page of rows associated with the default or named
SELECT
cursor
DBMS [WITH CURSORcursor
] CONTINUE_BOTTOM
WITH CURSOR
cursor
- Name of declared
SELECT
cursor. If the clause is not used, Panther uses the defaultSELECT
cursor.
DBMS
CONTINUE_BOTTOM
fetches 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
DBMS
CONTINUE_BOTTOM
. Other engines require a temporary storage file created by the commandSTORE
. If theDM_BAD_CMD
error return happens when the application executesDBMS
CONTINUE_BOTTOM
, the engine needs a scrolling file. For information about a specific engine, refer to "Database Drivers."
DBMS CONTINUE_BOTTOM
should not be used with aCATQUERY TO FILE
cursor.
// 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