mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 06:01:57 +00:00
11 lines
392 B
SQL
11 lines
392 B
SQL
select splitByChar(',', '1,2,3');
|
|
select splitByChar(',', '1,2,3', 0);
|
|
select splitByChar(',', '1,2,3', 1);
|
|
select splitByChar(',', '1,2,3', 2);
|
|
select splitByChar(',', '1,2,3', 3);
|
|
|
|
select splitByChar(',', '1,2,3', -2); -- { serverError 44 }
|
|
select splitByChar(',', '1,2,3', ''); -- { serverError 43 }
|
|
|
|
SELECT splitByChar('=', s, 1) FROM values('s String', 'expr1=1+1=2', 'expr2=2+2=4=1+3')
|