Suppose that on my system user U1 creates a new database record in table A , and I use the lastInsertId function to get the identifier (auto_increment) of such a record, but almost at the same time (a little later) another user U2 does the same .
In this case, lastInsertId returns U1 the identifier of the record added by another user, since it is the last?
Thanks.
source share