1,设置自增规则
create sequence TBNODEOPERATIONHISTORY increment by 1 start with 1000 nomaxvalue nominvalue nocache
2,配置触发器,实现主键自增
create or replace trigger TBNODEOPERATIONHISTORY
before insert on TB_NODE_OPERATION_HISTORY for each row
begin
select TBNODEOPERATIONHISTORY.nextval into :new.OPERATION_ID from dual;
end;