title: MySQL Stored Procedures and Last Inserted Row
body: <p>I'm curious whether this is a possibility. I have a stored procedure which Inserts and then retrieves the last insert id. What if 2 users both use the procedure at the same time, is something like this possible?</p>
  
  <pre><code> User 1
               User 2
   Insert 1
               Insert 2
   GetsLastid 2
               GetsLastid 2
  </code></pre>
  
  <p>Could the 2 calls of the stored procedure interlace the sequence of the insert queries? Or will one take lead?</p>
  
  <p>Thank you!</p>