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

UNSET VARIABLE



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);

Was this page helpful?