DROP VARIABLE
适用于: Databricks SQL Databricks Runtime 14.1 及更高版本
删除临时变量。
语法
DROP TEMPORARY VARIABLE [ IF EXISTS ] variable_name
参数
示例
-- Declare and drop a temporary variable
> DECLARE VARIABLE myvar;
> DROP TEMPORARY VARIABLE myvar;
-- A temporary variable can be qualified
> DROP TEMPORARY VARIABLE IF EXISTS session.myvar;