GETVARIABLE
functionsupportedUDFs, procedures, tasks, alerts, scriptingReturns the value associated with a SQL variable name.
Syntax
GETVARIABLE( '<name>' )
Parameters
| Name | Required | Description |
|---|---|---|
name | required | The name of the SQL variable. You must specify the name in uppercase letters, even if you used lowercase letters when defining the variable. |
Returns
The data type of the return value is VARCHAR.
Usage notes
- This function uses the result cache for the current session if you call the function more than once in the same session. The result cache applies wherever you call this function, including the body of policy objects, such as a row access policy.