current_database()

Returns the name of the currently active database

Reference: DuckDB 2.0.0

Arguments & returns

current_database()

Scalar
Overload link Returns
#01 VARCHAR

Example

current_database example
SQL
Haybarn WASM 2.0.0-rc12 · In your browser

Engine example · Run to view results.

In other engines

Snowflakecurrent_database()

Same function