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
-------
ctreev4
1 record selected