DEFINE¶
Synopsis¶
1 |
|
Where:
1 2 |
|
Description¶
Defines a variable to be used within SQL statements. Reference the variable with ${variable}
syntax.
Valid variable names start with a letter or underscore and are followed by zero or more alphanumeric characters or underscores.
All variable values must be enclosed into single-quotes. Single-quotes are removed during variable substitution. To escape single-quotes, enclose the value with triple-quotes.
There is no type declaration for a value.
Use the SHOW VARIABLES statement to see all variable definitions.
Use the UNDEFINE statement to clear a variable definitions.
Example¶
1 2 3 4 |
|
Last update:
2024-10-28