好像没有,有一个相似的就是定义一个序列,
create sequence 序列名 increment by 1 start with 1;
然后就在你想产生的序列号的地方用就可以了,如:序列名.nextval

解决方案 »

  1.   

    序列名.nextval如何复位,一直从 1 开始
      

  2.   

    用触发器或者序列
    或者取max(编号)再+1
      

  3.   

    没有
     两种方法
    方法一:
      用触发器建一个序列
    create sequence a_seq increment by 1 start with 100;
    建一个触发器, 自动+1
    create or replace trigger t_a
    before insert on a
    for each row
    begin
         select s_a.nextval into :new.b from dual;
    end;方法二:
      建一个序列
         create sequence a_seq increment by 1 start with 100;
       在语句中+1
      insert into tbl(id,....)
         values (a_seq.nextval,....)
      

  4.   

    create sequence seq_name 
    increment by 1
    start with 1
    maxvalue 99999999
    nocycle
    cache 10insert into table(id,...) values(seq_name.nextval,....)