Programming Guide |
Uses a named cursor for the duration of a statement
DBMS WITH CURSORcursor
DBMSstatement
WITH CURSOR
cursor
- Name of declared
SELECT
cursor. If the clause is not used, Panther uses the defaultSELECT
cursor. Colon expansion of the cursor name is allowed.DBMSstatement
- Text of the DBMS command.
The
DBMS WITH CURSOR
clause 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 CURSOR
clause with the following commands:DBMS WITH CURSORcursor
ALIAS ...
DBMS WITH CURSORcursor
CATQUERY ...
DBMS WITH CURSORcursor
COLUMN_NAMES
DBMS WITH CURSORcursor
CONTINUE
DBMS WITH CURSORcursor
CONTINUE_BOTTOM
DBMS WITH CURSORcursor
CONTINUE_TOP
DBMS WITH CURSORcursor
CONTINUE_UP
DBMS WITH CURSORcursor
EXECUTE ...
DBMS WITH CURSORcursor
FORMAT ...
DBMS WITH CURSORcursor
OCCUR ...
DBMS WITH CURSORcursor
START ...
DBMS WITH CURSORcursor
STORE ...
DBMS WITH CURSORcursor
UNIQUE ...If the
DBMS WITH CURSOR
clause is not used with these commands, Panther uses the default SELECT cursor. The application can also manipulate the default cursor by using theWITH CONNECTION
clause.Some engine-specific DBMS commands can also support the
WITH CURSOR
clause. 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