DESCRIBE SELECT LIST
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
DESCRIBE SELECT LIST
Writes information about select list items
in a prepared SELECT statement to an output SQLDA
structure.
Syntax
|
Parameters
- statement_name
-
The name of a
SELECTstatement to be processed using dynamic SQL steps. Typically, this is the same statement_name as in thePREPAREstatement. - output_sqlda_name
-
The name of the SQLDA structure to which
DESCRIBEwill write information about select list items.
Notes
Select
list items are column names and expressions in a SELECT statement.
A FETCH statement writes the values returned by
a SELECT statement to the addresses stored in an
output SQLDA.
To utilize the DESCRIBE SELECT LIST statement in
your application, issue statements in the following order:
DECLARE CURSORPREPAREOPENDESCRIBE SELECT LISTFETCH
A DESCRIBE
SELECT LIST statement writes the number of select list
items to the sqld_nvars field of an output SQLDA.
If the sqld_size field of the SQLDA is not equal
to or greater than this number, DESCRIBE writes
the value as a negative number to sqld_nvars. Design
your application to check sqld_nvars for a negative
number to determine if a particular output SQLDA is large enough
to process the current SELECT statement.