ClickHouse/docs/en/functions/splitting_merging_functions.rst

24 lines
972 B
ReStructuredText
Raw Normal View History

2017-04-26 19:16:38 +00:00
Functions for splitting and merging strings and arrays
2017-04-03 19:49:50 +00:00
----------------
splitByChar(separator, s)
~~~~~~~~~~~~
2017-04-26 19:16:38 +00:00
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.
2017-04-03 19:49:50 +00:00
splitByString(separator, s)
~~~~~~~~~~~
2017-04-26 19:16:38 +00:00
The same as above, but it uses a string of multiple characters as the separator. The string must be non-empty.
2017-04-03 19:49:50 +00:00
arrayStringConcat(arr[, separator])
~~~~~~~~~~~~~
2017-04-26 19:16:38 +00:00
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.
2017-04-03 19:49:50 +00:00
alphaTokens(s)
~~~~~~~~~~
2017-04-26 19:16:38 +00:00
Selects substrings of consecutive bytes from the range a-z and A-Z.
Returns an array of selected substrings.