CLOSE Statement [ESQL] [SP]

Closes a cursor.

Syntax

CLOSE cursor-name

Parameters

Examples

Usage

This statement closes the named cursor.

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]