<p>In mysql, how do I get the primary key used for an insert operation, when it is autoincrementing.</p>

<p>Basically, i want the new autoincremented value to be returned when the statement completes.</p>

<p>Thanks!</p>

MySQL's
LAST_INSERT_ID()