To get current database in Teradata

Knowing the current database within Teradata is sometimes an important piece of information needed by a user.

Syntax for using the DATABASE function:
SELECT DATABASE;


As an example, the following returns the account information for my user:
SELECT DATABASE;
1 Row returned


DATABASE
FORGETCODE