PostgreSQL - PL/pgSQL Fundamentals
What is wrong with this code snippet?
DECLARE
arr integer[] := ARRAY[1,2,3];
val integer;
BEGIN
FOREACH val LOOP
RAISE NOTICE '%', val;
END LOOP;
END;