+= (String concatenation assignment)
compound assignment += (String concatenation assignment)
What changes
- Input
- target value and an expression
- Output or change
- the same variable or column
- Return type
- Returns the data type that is defined for the variable.
Syntax at a glance
expression += expression
Work example
A label or expression needs += (String concatenation assignment) to combine text values with a known NULL rule.
Test two values, an empty string, and NULL. Prefer CONCAT or an explicit conversion when the expression could mix types.
Check your work += (String concatenation assignment). The output of += (String concatenation assignment) matches the expected text and handles NULL as documented.
Open Microsoft Learn for full syntax, permissions, and details for your version.