Re: RETURNING clause in 8.2

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: "Brandon Metcalf" <bmetcalf(at)nortel(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: RETURNING clause in 8.2
Date: 2008-06-18 20:06:47
Message-ID: dcc563d10806181306x5fbe1a67nefad08ded74b57d1@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jun 18, 2008 at 1:32 PM, Brandon Metcalf <bmetcalf(at)nortel(dot)com> wrote:
> I see that 8.2 has added a RETURNING clause option to the INSERT
> command. Is there anyway to achieve the same thing in versions prior
> to 8.2? Specifically, I need to return a default sequence number
> generated from an INSERT.

Not really the same. You can use currval('seqname') in versions before 8.2

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2008-06-18 20:08:02 Re: Easiest way to copy table from one db to another?
Previous Message Kynn Jones 2008-06-18 19:48:25 Easiest way to copy table from one db to another?