string_to_array()

Splits the string along the separator

Alias of string_split()

Arguments & returns

string_to_array(string, separator)

Scalar
Overload link stringseparator Returns
#01 VARCHARVARCHAR VARCHAR[]

Example

string_to_array example
SQL
Haybarn WASM 1.5.5-rc3 · In your browser

Engine example · Run to view results.

Catalog examples

SELECT
  string_split('hello-world', '-');