APPX Software Library

Chapter 4: SQL Language Elements

4.9.2.22 DATABASE (ODBC compatible)

Syntax

DATABASE [ ( ) ]

Description

The scalar function DATABASE returns the name of the database corresponding to the current connection name. This function takes no arguments, and the trailing parentheses are optional.

Example

select database() from t2;
DATABASE
--------
steel
1 record selected