Skip site navigation (1) Skip section navigation (2)

Re: returning id

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Marc Fromm <Marc(dot)Fromm(at)wwu(dot)edu>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: returning id
Date: 2011-09-20 20:09:14
Message-ID: 1316549355.2086.19.camel@localhost.localdomain (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
On Tue, 2011-09-20 at 15:55 -0400, Tom Lane wrote:
> Marc Fromm <Marc(dot)Fromm(at)wwu(dot)edu> writes:
> > Can I use "RETURNING id" in an insert statement with postgresql version 8.1.10?
> No.  I don't recall just when RETURNING was added, but for sure it was
> after 8.1.

I checked. It appeared in 8.2. Sooner than I expected actually.


In response to

pgsql-admin by date

Next:From: Marc FrommDate: 2011-09-20 22:00:57
Subject: currval()
Previous:From: Tom LaneDate: 2011-09-20 19:55:37
Subject: Re: returning id

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group