DESCRIBE BIND VARIABLES
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
DESCRIBE BIND VARIABLES
Writes information about any input variables in the prepared statement to an input SQLDA structure.
Syntax
|
Parameters
- statement_name
-
The name of an input SQL statement to be processed using dynamic SQL steps. Typically, this is the same statement_name used in the
PREPAREstatement. - input_sqlda_name
-
The name of the SQLDA structure to which
DESCRIBEwill write information about input variables. Input variables represent values supplied toINSERTandUPDATEstatements at run time, and to predicates inDELETE,UPDATE, andSELECTstatements at run time.To utilize the
DESCRIBE BIND VARIABLESstatement in your application, issue statements in the following order:-
PREPARE -
DESCRIBE BIND VARIABLES -
EXECUTEorOPEN CURSOR
The
DESCRIBE BIND VARIABLESstatement writes the number of input variables to thesqld_nvarsfield of the SQLDA. If thesqld_sizefield of the SQLDA is not equal to or greater than this number,DESCRIBEwrites the value as a negative number tosqld_nvars. Design your application to checksqld_nvarsfor a negative number to determine if a particular SQLDA is large enough to process the current input statement.Input variables in dynamic SQL statements are identified by parameter markers or as substitution names.
-