📣TiDB Cloud BYOC、TiDB Cloud Filesystem 和 PostgreSQL-compatible TiDB Cloud Starter 全新发布,开放公测中。此页面由 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);

文档内容是否有帮助?