CLOSE Statement [ESQL] [SP]

Closes a named cursor.

Syntax

CLOSE cursor-name

cursor-name:
   { identifier | host-variable }

Examples

Standards

  • SQL—Vendor extension to ISO/ANSI SQL grammar.

  • Sybase—Supported by Adaptive Server Enterprise.

Permissions

The cursor must have been previously opened.

Related reference
DECLARE CURSOR Statement [ESQL] [SP]
OPEN Statement [ESQL] [SP]
PREPARE Statement [ESQL]