Difference between revisions of "CLOSE"
From Lianjapedia
Yvonne.milne (Talk | contribs) (Created page with '==Purpose== Closes a cursor ==Syntax== CLOSE <cursor> ==See Also== DECLARE CURSOR, DROP CURSOR, FETCH, OPEN, SELECT ==Description== The CLOSE c…') |
Yvonne.milne (Talk | contribs) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | ''[[CLOSE Commands|CLOSE ... commands]]'' | ||
+ | |||
==Purpose== | ==Purpose== | ||
Closes a cursor | Closes a cursor | ||
Line 11: | Line 13: | ||
The CLOSE command closes the specified cursor, releasing all resources and locks allocated when the cursor was opened. A cursor is a pointer to a logical table. A logical table is a temporary collection of data that satisfy conditions specified in a SELECT statement. After a cursor has been CLOSED, it may be accessed again by issuing another OPEN statement. The cursor is not released until a DROP CURSOR statement is issued. This command can only be used in Embedded SQL. The cursor must already be open. | The CLOSE command closes the specified cursor, releasing all resources and locks allocated when the cursor was opened. A cursor is a pointer to a logical table. A logical table is a temporary collection of data that satisfy conditions specified in a SELECT statement. After a cursor has been CLOSED, it may be accessed again by issuing another OPEN statement. The cursor is not released until a DROP CURSOR statement is issued. This command can only be used in Embedded SQL. The cursor must already be open. | ||
− | {| class="wikitable" | + | {| class="wikitable" width="100%" |
!Keywords||Description | !Keywords||Description | ||
|- | |- |
Latest revision as of 09:56, 3 August 2016
Contents
Purpose
Closes a cursor
Syntax
CLOSE <cursor>
See Also
DECLARE CURSOR, DROP CURSOR, FETCH, OPEN, SELECT
Description
The CLOSE command closes the specified cursor, releasing all resources and locks allocated when the cursor was opened. A cursor is a pointer to a logical table. A logical table is a temporary collection of data that satisfy conditions specified in a SELECT statement. After a cursor has been CLOSED, it may be accessed again by issuing another OPEN statement. The cursor is not released until a DROP CURSOR statement is issued. This command can only be used in Embedded SQL. The cursor must already be open.
Keywords | Description |
---|---|
cursor | The name of the cursor to be closed. |
Example
CLOSE accounts