Getting the last inserted id - Mailing list pgsql-odbc

From Mike Fahey
Subject Getting the last inserted id
Date
Msg-id 4194F497.9040104@enter.net
Whole thread Raw
List pgsql-odbc
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?





pgsql-odbc by date:

Previous
From: Johann Zuschlag
Date:
Subject: Re: 08.00.0002 useless :-)
Next
From: "Fred Parkinson"
Date:
Subject: Re: Getting the last inserted id