From: | "Mehrotra, Abhinav (GE Healthcare)" <Abhinav(dot)Mehrotra(at)ge(dot)com> |
---|---|
To: | <pgsql-novice(at)postgresql(dot)org> |
Subject: | FW: RETURNING in stored procedure |
Date: | 2009-05-22 10:36:17 |
Message-ID: | 516FCC77ADD26141AF6F0EA95E0AA564570A58@BANMLVEM04.e2k.ad.ge.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
Thanks, this works :)
-----Original Message-----
From: pgsql-novice-owner(at)postgresql(dot)org
[mailto:pgsql-novice-owner(at)postgresql(dot)org] On Behalf Of Leif B.
Kristensen
Sent: Friday, May 22, 2009 2:46 PM
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: [NOVICE] RETURNING in stored procedure
On Friday 22. May 2009, Mehrotra, Abhinav (GE Healthcare) wrote:
>Val:= insert into temp("hello") RETURNING seq;
You may try:
INSERT INTO temp("hello") RETURNING seq INTO val;
--
Leif Biberg Kristensen | Registered Linux User #338009 Me And My
Database: http://solumslekt.org/blog/
--
Sent via pgsql-novice mailing list (pgsql-novice(at)postgresql(dot)org) To make
changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice
From | Date | Subject | |
---|---|---|---|
Next Message | Alan McKay | 2009-05-22 23:33:46 | thanks for an absolutely fantastic #pgcon! |
Previous Message | Leif B. Kristensen | 2009-05-22 09:16:22 | Re: RETURNING in stored procedure |