Programming Guide |
Fetches the previous page of rows associated with the default or named
SELECT
cursor
DBMS [WITH CURSORcursor
] CONTINUE_UP
WITH CURSOR
cursor
- Name of declared
SELECT
cursor. If the clause is not used, Panther uses the defaultSELECT
cursor.
DBMS CONTINUE_UP
scrolls backwards through a select set. If number of rows in the select set is less than the number of occurrences in the Panther variables, Panther ignores the request.Some database engines automatically support
DBMS CONTINUE_UP
. Other engines require a temporary storage file created by the commandSTORE
. If the engine needs such a file and the application tries to executeDBMS CONTINUE_UP
before executingDBMS STORE
, Panther returns the errorDM_BAD_CMD
. For information about a specific engine, refer to "Database Drivers."
DBMS CONTINUE_UP
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 go_back
DBMS WITH CURSOR t_cursor CONTINUE_UP
return// Engines requiring DBMS STOREproc select_all
DBMS DECLARE t_cursor FOR SELECT * FROM title
DBMS WITH CURSOR t_cursor STORE FILE
DBMS WITH CURSOR t_cursor EXECUTE
returnproc go_back
DBMS WITH CURSOR t_cursor CONTINUE_UP
return
CONTINUE
,CONTINUE_BOTTOM
,
CONTINUE_DOWN
,CONTINUE_TOP
,
STORE