DATABASE

 

Use the DATABASE statement to open the database which will become the default database and the current database.

 

 

Element

Description

Database Name

The name of the database

Server

The name of the host system where database resides.

Variable

A variable that contains the database specification

 

The DATABASE statement is required, if your 4GL program references a database at least once. This statement can be used in two ways:

 

 

DATABASE statement should be used if the application intends to connect to one database at a time. For setting multiple database connections see the CONNECT TO statement description.

 

Unlike SQL statements, DATABASE statement can include variables of the STRING datatype.

 

 

 

Related articles:

VALIDATE