用SQL取得select SEQUENCE.currval from dual
select SEQUENCE.nextval from dual