insert into table ... select last_insert_rowid(); #### insert into table ... select table_seq.currval from dual;