Function concat_ws

Source
fn concat_ws(sep: &str, vals: impl Row, writer: &mut impl Write)
Expand description

Concatenates all but the first argument, with separators. The first argument is used as the separator string, and should not be NULL. Other NULL arguments are ignored.

ยงExample

query T
select concat_ws(',', 'abcde', 2, NULL, 22);
----
abcde,2,22

query T
select concat_ws(',', variadic array['abcde', 2, NULL, 22] :: varchar[]);
----
abcde,2,22