I have a table with a standard auto numbered primary key, I was wondering if there's any way for MySQL to return the id number of the record it inserts after inserting it (if that made any sense) without running another query.
I'm attempting to insert records into two tables, and the second insert requires the id from the first insert - how do I obtain this?
Thanks for your time.