Product Documentation

SQL Reference Guide

Previous Topic

Next Topic

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

TOCIndex