pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Milen A. Radev <milen@radev.net>
To: pgsql-admin@postgresql.org
Subject: Re: insert and returning
Date: Mon, 04 Dec 2006 14:12:58 +0200
Message-ID: <457410CA.7020001@radev.net> (raw)
In-Reply-To: <0BA77301DFF4B24C9C5DAA74138BF95003C7AE@exchange-1.dbnet.co.il>
References: <0BA77301DFF4B24C9C5DAA74138BF95003C7AE@exchange-1.dbnet.co.il>

Doron Baranes написа:
> Hi,
> 
> can someone help me with an example of how to use the returning clause of an insert
> to return a column value from the row inserted?
> 

Look at the bottom of this page -
http://developer.postgresql.org/pgdocs/postgres/sql-insert.html

OTOH this functionality is available only in v8.2 (as you could guess
from the URL), but that version should be released tomorrow.


-- 
Milen A. Radev




view thread (2+ messages)

Message-ID: <457410CA.7020001@radev.net>
Permalink:  ../457410CA.7020001@radev.net/
Also on:    postgresql.org/message-id/457410CA.7020001@radev.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: milen@radev.net
  Subject: Re: insert and returning
  In-Reply-To: <457410CA.7020001@radev.net>
  References: <0BA77301DFF4B24C9C5DAA74138BF95003C7AE@exchange-1.dbnet.co.il> <457410CA.7020001@radev.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox