CLOSE
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Closing a cursor changes the state of the cursor from open to closed.
Syntax
|
Parameter
- cursor_name
-
An identifier named earlier in a
DECLARE CURSORstatement and anOPEN CURSORstatement.
Notes
- Only a cursor in the open state can be set to the closed state.
- When a transaction ends, any cursors in the open state are automatically set to the closed state.
- When a cursor is in the closed state, you cannot perform
FETCH,DELETE, orUPDATEoperations using that cursor. - It is good practice to close cursors explicitly.
Example
|