[nycphp-talk] getting last inserted id with PostgreSQL
Mitch Pirtle
mitch.pirtle at gmail.com
Sun Nov 21 16:19:28 EST 2004
Thanks for the correction Adam, I was wondering about that.
-- Mitch
On Sun, 21 Nov 2004 14:15:41 -0500 (EST), Adam Maccabee Trachtenberg
<adam at trachtenberg.com> wrote:
> On Sat, 20 Nov 2004, Mitch Pirtle wrote:
>
> > With MySQL and auto_increment, there is the possibility for an insert
> > to happen before you get your value, correct?
>
> False. MySQL will return the correct value, even if other threads have
> inserted new rows between your initial insert and the call to get the
> primary key.
More information about the talk
mailing list