8. OpenSQL Statements : Execute : Syntax
 
Share this page                  
Syntax
The EXECUTE statement has the following format:
exec sql EXECUTE statement_name
              [USING variable {, variable} | USING DESCRIPTOR descriptor_name];
statement_name
Identifies a valid object name specified using a a string literal or a host language variable. It must identify a valid prepared statement. If the statement identified by statement_name is invalid, the Enterprise Access product or server issues an error and aborts the execute statement. (A prepared statement is invalid if a transaction was committed or rolled back after the statement was prepared or if an error occurred while preparing the statement.)