Skip to main content

CURRENT_CATALOG

Description

Get the catalog of the current sql client connection.

Syntax

CURRENT_CATALOG()

Return Value

The catalog name of the current sql client connection.

Examples

select current_catalog();
+-------------------+
| current_catalog() |
+-------------------+
| internal |
+-------------------+