i have a table with a primary key that is set to auto increment. is there any way to get the primary key of the record just added (by doing an "INSERT ...." query) without doing a second query? i am using mysql, by the way.
i know there are ways it can easily be done with a second query, but am looking to find a way it can be done with one.
thanks