ARRAY_CONCAT Function

Creates a string by concatenating the elements of an array together with an optional separator.

Syntax

ARRAY_CONCAT(array, [separator])

Parameters

Return Value

A string formed by concatenating the elements of array using an optional separator.

Example

PRINT ARRAY_CONCAT(ARRAY('A', 'B', 'C'));  -- "ABC"
PRINT ARRAY_CONCAT(ARRAY(1, 2, 3), '-'); -- "1-2-3"

See Also