DBNAME (function)
Returns the name of the current database, equivalent to CURRENT_DATABASE.
Returns the name of the current database, equivalent to
CURRENT_DATABASE
.
Behavior type
ImmutableSyntax
DBNAME()
Examples
=> SELECT DBNAME();
dbname
------------------
VMart
(1 row)