Table of Contents

Search

  1. Preface
  2. The Transformation Language
  3. Constants
  4. Operators
  5. Variables
  6. Dates
  7. Functions

Transformation Language Reference

Transformation Language Reference

CONCAT_ARRAY

CONCAT_ARRAY

Concatenates string elements in an array based on a separator that you specify and returns a string.

Syntax

CONCAT_ARRAY(' ', array)
The following table describes the arguments for this command:
Argument
Required/Optional
Description
' '
Required
Each string element is separated by the separator you specify. For example, ',' separates the values with a comma.
array
Required
An array with elements of string type. The array that you want to concatenate.

Return Value

String

Nulls

If one of the string elements is NULL, CONCAT_ARRAY ignores it and returns the other string.
If all the string elements are NULL, CONCAT_ARRAY returns an empty string.

Examples

The following expression concatenates the string elements in the array.
CONCAT_ARRAY( ':', Name )
Name
RETURN VALUE
[‘John’,‘Baer’]
‘John:Baer’
[‘Bobbi’,‘Apperley’]
‘Bobbi:Apperley’
[‘Jason’,‘’]
‘Jason:’
[‘Greg’,NULL]
‘Greg’
[NULL,NULL]
‘’

0 COMMENTS

We’d like to hear from you!