= (Assignment)
assignment (=) or alias definition
What changes
- Input
- an expression
- Output or change
- a variable or column alias
Syntax at a glance
column_alias = expression | @variable = expression
Work example
A variable or expression needs the assignment behavior shown by = (Assignment).
Use one initialized variable and one value. Avoid compound assignment inside queries where row order is not guaranteed.
Check your work = (Assignment). The assigned value after = (Assignment) equals the stated expression exactly once.
Open Microsoft Learn for full syntax, permissions, and details for your version.