title: Getting the last inserted ID with expression in mysql
body: <p>I want to get the value of the last id insert in a table. How i can do this in mysql?
  For eg : in db2 we have</p>
  
  <pre><code>SET var_ID = (SELECT ID FROM NEW TABLE (INSERT INTO val_CLIENT(E_VER, NAME, TYPE) VALUES(0, val_NAME, 502))); 
  </code></pre>
  
  <p>The above statement needs to be converted into mysql. How can i do this?</p>