Re: Using autogenerated primary key in transaction

From: John R Pierce <pierce(at)hogranch(dot)com>
To: Andrus <kobruleht2(at)hot(dot)ee>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Using autogenerated primary key in transaction
Date: 2010-01-04 08:25:41
Message-ID: 4B41A605.6010204@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Andrus wrote:
>
> How to get autogenerated primary key for >=8.0 servers ?

currval('sequencename')

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Magnus Hagander 2010-01-04 08:29:02 Re: SELECT does not find table created by itself
Previous Message Jayadevan M 2010-01-04 04:33:29 Re: set-level update fails with unique constraint violation