current_schema()

Returns the name of the currently active schema. Default is main

Reference: DuckDB 2.0.0

Arguments & returns

current_schema()

Scalar
Overload link Returns
#01 VARCHAR

Example

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

Engine example · Run to view results.

In other engines

Snowflakecurrent_schema()

Same function