I'm using mysql currently, and i want to lock a record, update it, and get the current id.
For example, I have a table with a field called nextmsg (int). On my sql statement, i want to update the nextmsg + 1, and get the new value.
I was doing the following:
set rslck =...