pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Clinton Adams <clinton@vote-smart.org>
Cc: Chris Ruprecht <chris@cdrbill.com>
Cc: pgsql-php@postgresql.org
Subject: Re: How do I get the rec-id from an insert.
Date: Thu, 29 Aug 2002 17:58:15 -0500
Message-ID: <20020829225815.GB347@wolff.to> (raw)
In-Reply-To: <200208291500.15392.clinton@vote-smart.org>
References: <200208272340.17513.chris@cdrbill.com>
	<200208291500.15392.clinton@vote-smart.org>

On Thu, Aug 29, 2002 at 15:00:15 -0600,
  Clinton Adams <clinton@vote-smart.org> wrote:
> Chris -
> 
> You don't really need to know the key values - make it one query:
> 
> insert into c values (nextval('crecid'), currval('arecid'), currval('brecid'))

Is it documented that the above is reliable? I don't remember ever reading
that expressions are evaluated in the order they appear in a select
statement.



view thread (4+ messages)  latest in thread

Message-ID: <20020829225815.GB347@wolff.to>
Permalink:  ../20020829225815.GB347@wolff.to/
Also on:    postgresql.org/message-id/20020829225815.GB347@wolff.to

 · 

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-php@postgresql.org
  Cc: bruno@wolff.to, clinton@vote-smart.org, chris@cdrbill.com
  Subject: Re: How do I get the rec-id from an insert.
  In-Reply-To: <20020829225815.GB347@wolff.to>
  References: <200208272340.17513.chris@cdrbill.com> <200208291500.15392.clinton@vote-smart.org> <20020829225815.GB347@wolff.to>

* 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