select myseq.currval from dual; [download]
with
In reply to Re: Sequences, last_insert_id, SQLite, and Oracle by Ben Win Lue in thread Sequences, last_insert_id, SQLite, and Oracle by gaal