Contents Index DECLARE CURSOR statement [ESQL] [SP] DECLARE LOCAL TEMPORARY TABLE statement

ASA SQL Reference
  SQL Statements

DECLARE CURSOR statement [T-SQL]


Description 

Use this statement to declare a cursor in a manner compatible with Adaptive Server Enterprise.

Syntax 

DECLARE cursor-name
 CURSOR FOR select-statement
 [ FOR { READ ONLY | UPDATE } ]

cursor-name :     identifier

select-statement   : string

Usage 

Adaptive Server Anywhere supports a DECLARE CURSOR syntax that is not supported in Adaptive Server Enterprise. For information on the full DECLARE CURSOR syntax, see DECLARE CURSOR statement [ESQL] [SP].

This section describes the overlap between the Adaptive Server Anywhere and Enterprise flavors of DECLARE CURSOR.

Permissions 

None.

Side effects 

None.

See also 

DECLARE CURSOR statement [ESQL] [SP]

Standards and compatibility 

Contents Index DECLARE CURSOR statement [ESQL] [SP] DECLARE LOCAL TEMPORARY TABLE statement