DESCRIBE Statement [ESQL]

Gets information about the host variables required to store data retrieved from the database or host variables used to pass data to the database.

Syntax

DESCRIBE
   …[ USER TYPES ]
   …[ { ALL | BIND VARIABLES FOR | INPUT
   | OUTPUT | SELECT LIST FOR } ]
   …[ { LONG NAMES [ long-name-spec ] | WITH VARIABLE RESULT } ]
   …[ FOR ] { statement-name | CURSOR cursor-name }
   …INTO sqlda-name

long-name-spec:
   { OWNER.TABLE.COLUMN 
   | TABLE.COLUMN 
   | COLUMN }

Parameters

Examples

Usage

DESCRIBE sets up the named SQLDA to describe either the OUTPUT (equivalently SELECT LIST) or the INPUT (BIND VARIABLES) for the named statement.

Standards

  • SQL— Some clauses are vendor extensions to ISO/ANSI SQL grammar.

  • Sybase—Some clauses supported by Open Client/Open Server.

Permissions

None

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