CURRENT_DATABASE
Returns the name of the current database, equivalent to DBNAME
.
Behavior Type
Syntax
Parentheses are optional.
CURRENT_DATABASE()
Examples
=> SELECT CURRENT_DATABASE; CURRENT_DATABASE ------------------ VMart (1 row)