标签:value next tar with nbsp nocache star 最大值 art
create sequence SEQ_name
minvalue 1 --最小值
nomaxvalue --不设置最大值
start with 1 --从1开始计数
increment by 1 --每次加1个
nocycle --一直累加,不循环
nocache;
CREATE or replace TRIGGER "tiger_name" BEFORE
INSERT ON 表名 FOR EACH ROW
begin
select SEQ_name.nextval into :new.ZID from dual;
end;
标签:value next tar with nbsp nocache star 最大值 art
原文地址:https://www.cnblogs.com/zmm1990/p/11381342.html