SQL Server Concat With +
Definition and Usage
The + operator allows you to concatenate two or more strings together.
Note: See also the CONCAT() function.
Syntax
string1 +
string2 + string_n
Parameter Values
Parameter | Description |
---|---|
string1, string2, string_n | Required. The strings to concatenate |
Technical Details
Works in: | SQL Server 2014, SQL Server 2012, SQL Server 2008 R2, SQL Server 2008, SQL Server 2005 |
---|
More Examples
Example
Concatenate strings together (separate each string with a space character):
SELECT
'SQL' + ' ' + 'is' + ' ' + 'fun!';
Try it Yourself »