Chapter 4: SQL Language Elements
4.9.2.27 DB_NAME (extension)
Syntax
DB_NAME ( )
Description
The scalar function DB_NAME returns the name of the database corresponding to the current connection name. It provides compatibility with the Sybase SQL Server function db_name.
Example
SELECT DB_NAME() FROM T2; DB_NAME ------- dharmav4 1 record selected