PostgreSQL - PL/pgSQL Fundamentals
What will be the output of this function call?
CREATE FUNCTION sample() RETURNS SETOF text AS $$ BEGIN RETURN NEXT 'apple'; RETURN NEXT 'banana'; RETURN 'cherry'; END; $$ LANGUAGE plpgsql; SELECT * FROM sample();
