The CONCAT() function adds two or more strings together.
Note: See also Concat with the + operator and CONCAT_WS().
CONCAT(
string1,
string2,
....,
string_n)
Parameter | Description |
---|---|
string1, string2, string_n | Required. The strings to add together |
Works in: | SQL Server (starting with 2012), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse |
---|
Add strings together (separate each string with a space character):
SELECT CONCAT('SQL', ' ', 'is', ' ', 'fun!');
Try it Yourself »
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!