Is there a way to reference the 'primary key' field of a record you
are actually inserting at the moment.
Im using an 'int auto increment' field as the primary key.
I could reference it with a select statement and adding a 1 to the
last record's primary key. However, there must be a better way to do
this - what if someone adds a record right after I reference the last
one. I hope my question makes sense. Thanks! -Nick
are actually inserting at the moment.
Im using an 'int auto increment' field as the primary key.
I could reference it with a select statement and adding a 1 to the
last record's primary key. However, there must be a better way to do
this - what if someone adds a record right after I reference the last
one. I hope my question makes sense. Thanks! -Nick
Comment