From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Robert Treat <xzilla(at)users(dot)sourceforge(dot)net> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: TODO item for plpgsql Was Re: obtuse plpgsql function needs |
Date: | 2003-07-31 04:12:23 |
Message-ID: | 200307310412.h6V4CNt25172@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Does Oracle have a syntax for this?
---------------------------------------------------------------------------
Robert Treat wrote:
> On Wednesday 23 July 2003 19:06, Bruce Momjian wrote:
> > Robert Treat wrote:
> > > On Wed, 2003-07-23 at 15:38, greg(at)turnstep(dot)com wrote:
> > > > FOR myrec IN EXECUTE myinfo LOOP
> > > > biglist := myrec.info;
> > > > END LOOP;
> > >
> > > One other thing, I hate when I have to do things like the above, can we
> > > get a TODO like:
> > >
> > > allow 'EXECUTE var INTO record' in plpgsql
> >
> > So the TODO would be?
> >
> > Allow PL/pgSQL EXECUTE to return a single record outside a loop
>
> that's what I wrote, but not what I meant :-) I do like the sound of it
> though, but really what I meant to say was:
> EXECUTE var1 INTO var2
> but this assumes a number of things, namely that executing var1 will return
> only one field, and one row. I guess that would be:
> Allow PL/pgSQL EXECUTE to return a single variable outside a loop
>
> Robert Treat
> --
> Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Christoph Haller | 2003-07-31 07:42:48 | Re: One to many query question |
Previous Message | Vishal Charan (IT Fiji) | 2003-07-31 01:18:14 |