pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: amrit@health2.moph.go.th
Cc: PGsql-performance <pgsql-performance@postgresql.org>
Subject: Re: What is the postgres sql command for last_user_id ???
Date: Wed, 2 Mar 2005 01:12:57 -0700
Message-ID: <20050302081257.GB47871@winnie.fuhr.org> (raw)
In-Reply-To: <1109691962.42248e3a3c898@webmail.moph.go.th>
References: <1109691962.42248e3a3c898@webmail.moph.go.th>

On Tue, Mar 01, 2005 at 10:46:02PM +0700, amrit@health2.moph.go.th wrote:

> I would like to know whether there is any command which the server will give the
> record ID back to the client when client puts the data and the server generates
> an autoincrement ID for that record.

See "How do I get the value of a SERIAL insert?" and the question
immediately following it in the FAQ:

http://www.postgresql.org/files/documentation/faqs/FAQ.html#4.11.2

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/



view thread (3+ messages)

Message-ID: <20050302081257.GB47871@winnie.fuhr.org>
Permalink:  ../20050302081257.GB47871@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20050302081257.GB47871@winnie.fuhr.org

 · 

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-performance@postgresql.org
  Cc: mike@fuhr.org, amrit@health2.moph.go.th
  Subject: Re: What is the postgres sql command for last_user_id ???
  In-Reply-To: <20050302081257.GB47871@winnie.fuhr.org>
  References: <1109691962.42248e3a3c898@webmail.moph.go.th> <20050302081257.GB47871@winnie.fuhr.org>

* 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