String concatenation

Read(2804) Label: zfcpj,

Here are types of string concatenation.

a+ b

Description:

Concatenate strings.

Syntax:

a+b

Note:

Concatenate string a and string b. Note that 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.

a/b

Description:

Concatenate a string and a non-string.

Syntax:

a/b

Note:

Concatenate a string and a non-string.

Parameter:

a/b

Data of any type, with the condition that either a or b is a string.

Return value:

String

Example:

"abc"/12

abc12.

date("2015-03-12")/"abc"

2015-03-12abc.