7.5.9 DECLARE STATEMENT

Table of Contents Previous Next


7 Reference : 7.5 ECPGPlus Statements : 7.5.9 DECLARE STATEMENT

Use the DECLARE STATEMENT directive to declare an identifier for an SQL statement. Advanced Server supports two versions of the DECLARE STATEMENT directive:
EXEC SQL [database_name] DECLARE statement_name STATEMENT;
statement_name specifies the identifier associated with the statement.
database_name specifies the name of the database. This value may take the form of an identifier or of a host variable that contains the identifier.
A typical usage sequence that includes the DECLARE STATEMENT directive might be:

7 Reference : 7.5 ECPGPlus Statements : 7.5.9 DECLARE STATEMENT

Table of Contents Previous Next