跳到主要内容

UNSET VARIABLE

Introduced or updated: v1.2.609

Removes one or more variables from the current session.

Syntax

-- Remove one variable
UNSET VARIABLE <variable_name>

-- Remove more than one variable
UNSET VARIABLE (<variable1>, <variable2>, ...)

Examples

The following example unsets a single variable:

-- Remove the variable a from the session
UNSET VARIABLE a;

The following example unsets multiple variables:

-- Remove variables x and y from the session
UNSET VARIABLE (x, y);
开始使用 Databend Cloud
低成本
快速分析
多种数据源
弹性扩展
注册