Description
Specify the SCHEMA and compute resources for the current session
Syntax
Parameter Description
SCHEMA
: This is an optional keyword and can be omitted in the statement.schema_name
: Specifies the name of the schema to switch to.
Examples
- Switch to the schema named
ods_schema
:
- Assuming there is a compute cluster named sample_vc in the current workspace, you can switch to this compute cluster using the following command:
- If you want to switch to the computing cluster named high_performance_vc, you can execute the following command:
Notes
- When connecting using client tools (such as Client SQLLine, DBeaver, etc.), the relevant operations will take effect for the entire session. If you are using the Lakehouse Studio interface, it is recommended to switch Schemas and compute clusters via the page. It should be noted that if you directly use the relevant commands, their effects will only be temporary and will only take effect if selected together with the SQL to be executed.