Note
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang mag-sign in o magpalit ng mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
Applies to:
Databricks SQL
Databricks Runtime
Concatenates the elements of array.
Syntax
array_join(array, delimiter [, nullReplacement])
Arguments
array: AnyARRAYtype, but its elements are interpreted as strings.delimiter: ASTRINGused to separate the concatenated array elements.nullReplacement: ASTRINGused to express aNULLvalue in the result.
Returns
A STRING where the elements of array are separated by delimiter and null elements are substituted for nullReplacement.
If nullReplacement is omitted, null elements are filtered out.
If any argument is NULL, the result is NULL.
Examples
> SELECT array_join(array('hello', 'world'), ',');
hello,world
> SELECT array_join(array('hello', NULL ,'world'), ',');
hello,world
> SELECT array_join(array('hello', NULL ,'world'), ',', '*');
hello,*,world