current_database()

Returns the name of the currently active database

Arguments & returns

current_database()

Scalar
Overload link Returns
#01 VARCHAR

Example

current_database example
SQL
Haybarn WASM 1.5.5-rc3 · In your browser

Engine example · Run to view results.

In other engines

Snowflakecurrent_database()

Same function