All cursors in a program are in the closed state when:
Note: Unless the WITH HOLD option has been used in the DECLARE CURSOR statement, a new unit of work is started for the application process.
A cursor can also be in the closed state because:
The only way to change the state of a cursor from closed to open is to execute an OPEN statement.
To retrieve rows from the result table of a cursor, you must execute a FETCH statement when the cursor is open.
|
Copyright © 2014 CA.
All rights reserved.
|
|