PostgreSQL - Advanced PL/pgSQL
Given the function:
What is the result of
CREATE FUNCTION join_words(VARIADIC words text[]) RETURNS text AS $$ SELECT array_to_string(words, '-'); $$ LANGUAGE sql;
What is the result of
SELECT join_words('red', 'green', 'blue');?