array_to_string
Join the values in a list into one string using a separator.
Try an expression
In Formula, enter the expression and set Output type to VARCHAR.
Expression
array_to_string([1, 2, 3], '-')Result
'1-2-3'To use your own data, replace the example values with column names. Keep format strings and other options as written.
Arguments and types
array_to_string(arr, sep)- arr
- Any value
- sep
- Any value
Supported signatures (1)
array_to_string(arr: ANY, sep: ANY)The result type can depend on the input types. See DuckDB for the full argument rules.
Things to know
If the first argument is missing, the result is NULL.
Function metadata from DuckDB, used under the MIT license.