CONCAT
Description
The CONCAT
function is used to concatenate multiple strings, arrays, or binary data. Depending on the type of input parameters, the CONCAT
function can perform the following operations:
- Combine multiple array elements into a new array.
- Concatenate multiple strings into a new string.
- Concatenate multiple binary data into new binary data.
Syntax
Parameters
array1 ~ arrayN
: Typearray<T>
, representing the arrays to be concatenated.str1 ~ strN
: Typestring
, representing the strings to be concatenated.binary1 ~ binaryN
: Typebinary
, representing the binary data to be concatenated.
Return Results
- Array overload version: Returns a new array of type
array<T>
. - String overload version: Returns a concatenated string.
- Binary overload version: Returns concatenated binary data.
Examples
- Concatenate two arrays:
Results:
- Connecting multiple strings:
Results:
- Connect two binary data:
Results:
- Connecting Strings and Numbers (Note: Numbers need to be converted to strings first):
Results:
- Using the
CONCAT
function to concatenate multiple fields:
Results: