Skip to main content
VeloDB Cloud 26.x·Apache Doris 4.x (up to 4.0 supported)·"Since X.Y" tags refer to Apache Doris versionsVersion mapping

SWITCH CATALOG

Description​

This statement is used to switch catalog.

Syntax​

SWITCH <catalog_name>

Required Parameters​

1. <catalog_name>

The name of the catalog to switch to.

Access Control Requirements​

PrivilegeObjectNotes
SELECT_PRIVCatalogSELECT_PRIV privilege is required on the catalog to be switched to.

Examples​

  1. Switch to the catalog hive

    SWITCH hive;