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β
Privilege | Object | Notes |
---|---|---|
SELECT_PRIV | Catalog | SELECT_PRIV privilege is required on the catalog to be switched to. |
Examplesβ
-
Switch to the catalog
hive
SWITCH hive;