Reputation: 2406
So, the situation is this:
I want to:
How would you do this in MySQL? Can it be done using straight SQL? Using stored procedures?
Upvotes: 0
Views: 225
Reputation: 4956
The query SELECT LAST_INSERT_ID() should help you achieve this.
SELECT LAST_INSERT_ID()
Upvotes: 2