7.5.8 DECLARE DATABASE

Table of Contents Previous Next


7 Reference : 7.5 ECPGPlus Statements : 7.5.8 DECLARE DATABASE

Use the DECLARE DATABASE statement to declare a database identifier for use in subsequent SQL statements (for example, in a CONNECT statement). The syntax is:
EXEC SQL DECLARE database_name DATABASE;
database_name specifies the name of the database.
After invoking the command declaring acctg as a database identifier, the acctg database can be referenced by name when establishing a connection or in AT clauses.

7 Reference : 7.5 ECPGPlus Statements : 7.5.8 DECLARE DATABASE

Table of Contents Previous Next