日期:2014-05-17 浏览次数:20972 次
scott@ORA11GR2> create sequence seq minvalue 1 maxvalue 100;
Sequence created.
scott@ORA11GR2> select to_char(seq.nextval-1, '09') from dual;
TO_
---
00
scott@ORA11GR2> select to_char(seq.nextval-1, '09') from dual;
TO_
---
01
scott@ORA11GR2> select to_char(seq.nextval-1, '09') from dual;
TO_
---
02