Re: plpgsql returning resultset - Mailing list pgsql-general

From Raymond O'Donnell
Subject Re: plpgsql returning resultset
Date
Msg-id 48BDADE5.9090604@iol.ie
Whole thread Raw
In response to Re: plpgsql returning resultset  (Thomas Finneid <tfinneid@student.matnat.uio.no>)
List pgsql-general
On 02/09/2008 21:55, Thomas Finneid wrote:
>     with val_list in
>       select * from tableA
>     do
>     loop
>       return next val_list;
>     end loop;

Oops - my mistake - it should indeed be FOR, not WITH, hence your error
message.

One other thing in the above - you don't need the DO, it's just
FOR...LOOP...END LOOP.

Ray.



------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------

pgsql-general by date:

Previous
From: Thomas Finneid
Date:
Subject: Re: plpgsql returning resultset
Next
From: "Asko Oja"
Date:
Subject: Re: Oracle and Postgresql