You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hive: ${hivevar:name}, ${hiveconf:name}, ${system:name} or ${name}. These are substitution variables (as in Oracle SQL terminology).
They behave more like string-interpolation, that is, the values aren't automatically escaped by the system.
A common example is to place the variable inside a string: SELECT * FROM users WHERE name = '${hivevar:USER_NAME}'.
Also one can use the variable to parameterize table or column name (SELECT * FROM ${hivevar:my_table}).
See also post in StackOverflow.
MariaDB: @name (where the name consists of alphanumeric characters, ., _, and $), @'var name', @"var name", @`var name` (can be quoted as string or identifier). Also @@name for system variables.