ARRAY_TO_STRING

functionsupportedCore SQL functions

docs.snowflake.com ↗

Semi-structured and structured data functions

Returns an input array converted to a string by casting all values to strings (using TO_VARCHAR) and concatenating them (using the string from the second argument to separate the elements).

Syntax

ARRAY_TO_STRING( <array> , <separator_string> )

Parameters

NameRequiredDescription
arrayrequiredThe array of elements to convert to a string.
separator_stringrequiredThe string to put between each element, typically a space, comma, or other human-readable separator.

Returns

This function returns a value of type VARCHAR.

Usage notes