bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

SQL Server CONCAT() Function

Example

SELECT
CONCAT('ExampleSite', '.com');

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

ParameterDescription
string1, string2, string_nRequired. The strings to add together

Technical Details

Works in:SQL Server (starting with 2012), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse

Previous

SQL Server CHARINDEX() Function

Next

SQL Server Concat With +