Sorry, this may be rudamentry, but I am not sure quite how to pull it off.
I want to insert a record and read the index value created in a single query.
It is not sufficient to insert a record with one query then read the last record with another query as a different user running the same application has a chance of inserting another record before the 2nd query (to find info on the latest record) has a chance to run.
Is it at all clear what I need to do and the concerns I have?
I want to insert a record and read the index value created in a single query.
It is not sufficient to insert a record with one query then read the last record with another query as a different user running the same application has a chance of inserting another record before the 2nd query (to find info on the latest record) has a chance to run.
Is it at all clear what I need to do and the concerns I have?