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