I\'m inserting some data into an Oracle table and need to retrieve the id of the inserted row. Said id is being generated by a sequenc
Oracle
id
Let's say the trigger uses id_seq Oracle sequence to get the id. If you execute from MyBatis using the same database session, the SQL
select id_seq.currval from dual;
You will get the ID used.