Updated on 2024-10-25 GMT+08:00

USE

Syntax

  • USE catalog.schema
  • USE schema

Description

This statement is used to specify the catalog and schema used by the current session. If the catalog is not specified, the current catalog is used by default.

Example

To specify the current session to the schema named test in the Hive catalog:

USER hive.test

Precautions

None