| Start |
|---|
| Updating variables using SELECT Using 1 Hello When using 2 1 If there are no rows returned by the query, the variable's value won't change: 1 |
Declare multiple variables at once, with initial values |
Declare a Table Variable When you create a normal table, you use To reference the table variable inside a Must declare the scalar variable "@TableVariableName". i.e. |
Updating a variable using SET 1 Using |
| Compound assignment operators Supported compound operators:
Example usage: |
| Updating variables by selecting from a table Depending on the structure of your data, you can create variables that update dynamically. In most cases, you will want to ensure that your query returns only one value when using this method. Syntax
|
Read Article
https://develop.horje.com/learn/1434/reference