title: How to obtain last insert id in Oracle using MyBatis?
body: <p>I'm inserting some data into an <code>Oracle</code> table and need to retrieve the <code>id</code> of the inserted row. Said <code>id</code> is being generated by a sequence and then inserted to the table by a trigger.</p>
  
  <p>Now, I know there are several ways to get the id of the inserted row when using <code>JDBC</code>, but since I'm using <code>MyBatis</code> to execute the <code>INSERT</code> command, I can't seem to figure out how to obtain the id after inserting my data. Any advice would be greatly appreciated.</p>