PostgreSQL - Advanced PL/pgSQL
What is wrong with this cursor declaration?
DECLARE mycursor CURSOR FOR SELECT id FROM orders WHERE status = 'shipped'; OPEN mycursor; FETCH NEXT FROM mycursor;
