oracle自增列有关问题 求高手解答

oracle自增列问题求高手解答一张表的主键 ,怎么设置可以让它的值为00-99之间其中10以前的数为 01,02,03,04

oracle自增列问题 求高手解答
一张表的主键 ,怎么设置可以让它的值为00-99之间 其中10以前的数为 01,02,03,04......

[解决办法]

SQL code
scott@ORA11GR2> create sequence seq minvalue 1 maxvalue 100;Sequence created.scott@ORA11GR2> select to_char(seq.nextval-1, '09') from dual;TO_--- 00scott@ORA11GR2> select to_char(seq.nextval-1, '09') from dual;TO_--- 01scott@ORA11GR2> select to_char(seq.nextval-1, '09') from dual;TO_--- 02