Difference between revisions of "DROP CURSOR"

From Lianjapedia
Jump to: navigation, search
m (Text replace - "Recital" to "Lianja")
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Frees up all system resources allocated to a cursor
 
Frees up all system resources allocated to a cursor
 
  
 
==Syntax==
 
==Syntax==
 
DROP CURSOR <cursor>
 
DROP CURSOR <cursor>
 
  
 
==See Also==
 
==See Also==
 
[[SQL CLOSE|CLOSE]], [[DECLARE CURSOR]], [[OPEN]], [[SQL SELECT|SELECT]]
 
[[SQL CLOSE|CLOSE]], [[DECLARE CURSOR]], [[OPEN]], [[SQL SELECT|SELECT]]
 
  
 
==Description==
 
==Description==
Line 15: Line 12:
  
 
This command can only be used in Embedded SQL.  The cursor must already be declared.
 
This command can only be used in Embedded SQL.  The cursor must already be declared.
 
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 23: Line 19:
 
|-
 
|-
 
|}
 
|}
 
  
 
==Example==
 
==Example==
Line 29: Line 24:
 
DROP CURSOR accounts
 
DROP CURSOR accounts
 
</code>
 
</code>
 
  
 
==Products==
 
==Products==

Revision as of 10:03, 11 December 2012

Purpose

Frees up all system resources allocated to a cursor

Syntax

DROP CURSOR <cursor>

See Also

CLOSE, DECLARE CURSOR, OPEN, SELECT

Description

The DROP CURSOR command frees up all system resources allocated to the specified cursor. Cursors may be closed with the CLOSE statement, and then re-opened with the OPEN statement. The DROP CURSOR statement should only be used if the cursor is no longer needed.

This command can only be used in Embedded SQL. The cursor must already be declared.

Keywords Description
cursor The name of a declared cursor to be dropped.

Example

DROP CURSOR accounts

Products

Lianja Server, Lianja