EXECUTE
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Executes the statement specified in statement_name.
Syntax
|
Parameters
- statement_name
-
Name of the prepared SQL statement.
- structure_name
-
Name of an SQL descriptor area (SQLDA).
Notes
- A
statement must be processed with a
PREPAREstatement before it can be processed with anEXECUTEstatement. - A prepared statement can be executed multiple times in the same transaction.
Typically each call to the
EXECUTEstatement supplies a different set of host variables. - If there is no
DESCRIPTORin theUSINGclause, theEXECUTEstatement is restricted to the number of variables specified in the host variable list. The number and type of the variables must be known at compile time. The host variables must be declared in theDECLARE SECTIONbefore they can be used in theUSINGclause of theEXECUTEstatement. - If there is a
DESCRIPTORin theUSINGclause, the program can allocate space for the input host variables at run time.
Example
|