![]()  |  Programming Guide |       ![]()  |  
Uses a named cursor for the duration of a statement
DBMS WITH CURSORcursorDBMSstatement
WITH CURSORcursor- Name of declared
 SELECTcursor. If the clause is not used, Panther uses the defaultSELECTcursor. Colon expansion of the cursor name is allowed.DBMSstatement- Text of the DBMS command.
 
The
DBMS WITH CURSORclause specifies the name of a declared cursor on which Panther executes the DBMS command. Once a cursor is declared, the application can manipulate or execute the cursor by using theWITH CURSORclause with the following commands:DBMS WITH CURSORcursorALIAS ...
DBMS WITH CURSORcursorCATQUERY ...
DBMS WITH CURSORcursorCOLUMN_NAMES
DBMS WITH CURSORcursorCONTINUE
DBMS WITH CURSORcursorCONTINUE_BOTTOM
DBMS WITH CURSORcursorCONTINUE_TOP
DBMS WITH CURSORcursorCONTINUE_UP
DBMS WITH CURSORcursorEXECUTE ...
DBMS WITH CURSORcursorFORMAT ...
DBMS WITH CURSORcursorOCCUR ...
DBMS WITH CURSORcursorSTART ...
DBMS WITH CURSORcursorSTORE ...
DBMS WITH CURSORcursorUNIQUE ...If the
DBMS WITH CURSORclause is not used with these commands, Panther uses the default SELECT cursor. The application can also manipulate the default cursor by using theWITH CONNECTIONclause.Some engine-specific DBMS commands can also support the
WITH CURSORclause. For more information, refer to "Database Drivers."
// Uses colon expansion on the cursor name to remove
// the command attributes for named cursors.proc cursor_refresh (cursor_name)
DBMS WITH CURSOR :cursor_name ALIAS
DBMS WITH CURSOR :cursor_name CATQUERY
return 0
DECLARE CURSOR,CLOSE CURSOR,dm_is_cursor
![]()
![]()
![]()
![]()