+ (String concatenation)
string concatenation + (String concatenation)
What changes
- Input
- two string expressions
- Output or change
- concatenated string (NULL rules depend on CONCAT_NULL_YIELDS_NULL)
- Return type
- Returns the data type of the argument with the highest precedence. For more information, see Data type precedence.
Syntax at a glance
expression + expression
Work example
A label or expression needs + (String concatenation) 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). The output of + (String concatenation) matches the expected text and handles NULL as documented.
Open Microsoft Learn for full syntax, permissions, and details for your version.