pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mike Fahey <mfahey@enter.net>
To: Postgres list <pgsql-odbc@postgresql.org>
Subject: Getting the last inserted id
Date: Fri, 12 Nov 2004 12:36:23 -0500
Message-ID: <4194F497.9040104@enter.net> (raw)

So I guess the question still remains, how do you get the last inserted 
id from a sequence?

I'm using access 2003 & postgres odbc 8.0.02


select @@IDENTITY seems to be MS Specific and not work with postgres.

calling currval has to be a pass-through query which makes it high 
complicated if at all
possible.

How does everyone else do this ?

How does any database maintain referential integrity if this doesn't work?







view thread (3+ messages)  latest in thread

Message-ID: <4194F497.9040104@enter.net>
Permalink:  ../4194F497.9040104@enter.net/
Also on:    postgresql.org/message-id/4194F497.9040104@enter.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-odbc@postgresql.org
  Cc: mfahey@enter.net
  Subject: Re: Getting the last inserted id
  In-Reply-To: <4194F497.9040104@enter.net>
  References: <4194F497.9040104@enter.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