Open universalmind303 opened 3 weeks ago
Add a few additional functions for splitting strings into arrays.
create table strings (v text); insert into strings values ("foo bar"), ("foo_bar") ("foo bar baz");
Note: this is the current string_to_array function, but i think split is much more intuitive.
string_to_array
split
select split(v, ' ') from values; ---- ["foo", "bar"] ["foo_bar"] ["foo", "bar", "baz"]
select splitn(v, ' ', 2) from values; ---- ["foo", "bar"] ["foo_bar"] ["foo", "bar baz"]
Description
Add a few additional functions for splitting strings into arrays.
Note: this is the current
string_to_array
function, but i thinksplit
is much more intuitive.