PostgreSQL - Advanced PL/pgSQL
Identify the issue in this function:
CREATE FUNCTION get_colors() RETURNS SETOF text AS $$ BEGIN RETURN QUERY SELECT color FROM palette; RETURN NEXT 'extra'; END; $$ LANGUAGE plpgsql;
Identify the issue in this function:
CREATE FUNCTION get_colors() RETURNS SETOF text AS $$ BEGIN RETURN QUERY SELECT color FROM palette; RETURN NEXT 'extra'; END; $$ LANGUAGE plpgsql;
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions