📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

CURRENT_CATALOG



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

Syntax

CURRENT_CATALOG()

Examples

SELECT CURRENT_CATALOG(); ┌───────────────────┐ │ current_catalog() │ ├───────────────────┤ │ default │ └───────────────────┘

Was this page helpful?