Here are types of string concatenation.
Join two or more strings end-to-end.
Syntax:
a+b
Note:
A string and a numeric value cannot be concatenated.
Parameter:
a |
A string constant |
b |
A string constant |
Return value:
A string formed by joining a and b.
Example:
"abc"+"def" |
abcdef |
"abc"+123 |
123. A string and a numeric value cannot be concatenated. |
Description:
Concatenate a string with one or more pieces of non-string data.
Syntax:
a/b
Note:
Either a or b is a string. The function will convert the non-string type one to a string before concatenating them to a larger one.
Parameter:
a |
Data of any type, with the condition that either a or b is a string |
b |
Data of any type, with the condition that either a or b is a string |
Return value:
A string
Example:
"abc"/12 |
abc12 |
date("2015-03-12")/"abc" |
2015-03-12abc |