oracle 创建ID自增触发器
sequence 创建列表
trigger 创建触发器
队列别名:SEQ_CUS_NOMAL_ASSERT_SUMMARY
触发器别名:TRIG_CUS_NOMAL_ASSERT_SUMMARY
表名:CUS_NOMAL_ASSERT_SUMMARY
自增字段:cnas_id
-触发器
create sequence SEQ_CUS_NOMAL_ASSERT_SUMMARY
minvalue 1
NOMAXvalue
increment by 1
start with 1;
create trigger TRIG_CUS_NOMAL_ASSERT_SUMMARY
before insert on CUS_NOMAL_ASSERT_SUMMARY
for each row
begin
select SEQ_CUS_NOMAL_ASSERT_SUMMARY.nextval into :new.cnas_id from dual;
end;