create sequence aa_id increment by 1 start with 1 minvalue 1 maxvalue 99999 cache 20
select aa_id.nextval from dual;