SQL Server CONCAT() Function
Definition and Usage
The CONCAT() function adds two or more strings together.
Note: See also Concat with the + operator and CONCAT_WS().
Syntax
CONCAT(string1,
string2, ...., string_n)
Parameter Values
Parameter | Description |
---|---|
string1, string2, string_n | Required. The strings to add together |
Technical Details
Works in: | SQL Server (starting with 2012), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse |
---|
More Examples
Example
Add strings together (separate each string with a space character):
SELECT
CONCAT('SQL', ' ', 'is', ' ', 'fun!');
Try it Yourself »
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.