📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

USE WAREHOUSE



Binds the current session to a specific warehouse. Subsequent queries in the session will use this warehouse for execution.

Syntax

USE WAREHOUSE <warehouse_name>
ParameterDescription
warehouse_nameThe name of the warehouse to use. The command validates that the warehouse exists and is accessible.

Examples

Set a warehouse as active for the current session:

USE WAREHOUSE 'my-warehouse';

Was this page helpful?