Re: serial type vs. sequences

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Suchandra Thapa <s-thapa-11(at)alumni(dot)uchicago(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: serial type vs. sequences
Date: 2003-11-12 21:58:20
Message-ID: 3FB2ACFC.9080109@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

You are accurate.

Suchandra Thapa wrote:

>I was wondering if there was a reliable method to get the last id
>inserted into a serial column in a table. I believe previous
>recommendations given were to use a sequence, have your app get the
>nextval for the sequence and then use that in the insert. I was
>wondering if things had changed or if that is still the recommended
>method.
>
>
>

--
Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC
Postgresql support, programming shared hosting and dedicated hosting.
+1-503-222-2783 - jd(at)commandprompt(dot)com - http://www.commandprompt.com
Editor-N-Chief - PostgreSQl.Org - http://www.postgresql.org

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Lynn.Tilby 2003-11-12 21:59:11 Updated Documentation
Previous Message Mark Harrison 2003-11-12 21:46:42 how can I change a btree index into a hash index?