CURRENT_DATABASE

Returns the current database name

Syntax

CURRENT_DATABASE()

Return Types

TEXT

Example

SELECT current_database()

Returns: account_db