mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
24 lines
972 B
ReStructuredText
24 lines
972 B
ReStructuredText
Functions for splitting and merging strings and arrays
|
|
----------------
|
|
|
|
splitByChar(separator, s)
|
|
~~~~~~~~~~~~
|
|
Splits a string into substrings, using 'separator' as the separator.
|
|
'separator' must be a string constant consisting of exactly one character.
|
|
Returns an array of selected substrings. Empty substrings may be selected if the separator occurs at the beginning or end of the string, or if there are multiple consecutive separators.
|
|
|
|
splitByString(separator, s)
|
|
~~~~~~~~~~~
|
|
The same as above, but it uses a string of multiple characters as the separator. The string must be non-empty.
|
|
|
|
arrayStringConcat(arr[, separator])
|
|
~~~~~~~~~~~~~
|
|
Concatenates strings from the array elements, using 'separator' as the separator.
|
|
'separator' is a string constant, an optional parameter. By default it is an empty string.
|
|
Returns a string.
|
|
|
|
alphaTokens(s)
|
|
~~~~~~~~~~
|
|
Selects substrings of consecutive bytes from the range a-z and A-Z.
|
|
Returns an array of selected substrings.
|