Skip to main content

CURRENT_CATALOG

Introduced or updated: v1.2.668

Returns the name of the catalog currently in use for the session.

Syntax​

CURRENT_CATALOG()

Examples​

SELECT CURRENT_CATALOG();

┌───────────────────┐
│ current_catalog() │
├───────────────────┤
│ default │
└───────────────────┘
Try Databend Cloud for FREE

Multimodal, object-storage-native warehouse for BI, vectors, search, and geo.

Snowflake-compatible SQL with automatic scaling.

Sign up and get $200 in credits.

Try it today