📣
TiDB Cloud Premium 开放公测中。为企业级工作负载提供无限扩展、即时弹性伸缩和高级安全保障。此页面由 AI 自动翻译,英文原文请见此处。

UNSET VARIABLE



从当前会话中移除一个或多个变量。

语法

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

示例

以下示例取消设置单个变量:

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

以下示例取消设置多个变量:

-- Remove variables x and y from the session UNSET VARIABLE (x, y);

文档内容是否有帮助?