Skip to content

Commit

Permalink
Add array_to_string and array_join functions (#656)
Browse files Browse the repository at this point in the history
Add array_to_string() and array_join() functions.
  • Loading branch information
bernscode committed Mar 21, 2023
1 parent 6bc0526 commit d0373a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/sql/functions-operators/sql-function-array.md
Expand Up @@ -6,4 +6,5 @@ title: Array functions

|Function|Description|Example|
|---|---|---|
| array_to_string(*any_array*, *delimiter_string*, *null_string*) → *output_string* <br /><br /> array_join(*any_array*, *delimiter_string*, *null_string*) → *output_string* |Converts an array to a string. The optional *delimiter_string* separates the array's elements in the resulting string, and the optional *null_string* represents `NULL` elements in the array. `array_join` can also be used instead of `array_to_string`.|`array_to_string(array[1, 2, 3, NULL, 5], ',', '*')``1,2,3,*,5` <br /> `array_join(array[1, 2, 3, NULL, 5], ',', '*')``1,2,3,*,5`|
| unnest(*any_array*) → *set_of_any_element* |Expands an array, or combination of arrays, into a set of rows. The array's elements are output in the order they are stored.|`unnest(Array[1,2,3])` → <br />`1`<br />`2`<br />`3` <br /> `unnest(Array[Array[1,3,4,5],Array[2,3]])` → <br />`1`<br />`3`<br />`4`<br />`5`<br />`2`<br />`3`|

0 comments on commit d0373a3

Please sign in to comment.