时间:2021-07-01 10:21:17 帮助过:16人阅读
CREATE SEQUENCE TABDATA_LIVE_CYCLE_SEQ
MINVALUE 0
MAXVALUE 9999999999999999999999999999
INCREMENT BY 1
START WITH 1
CACHE 20
NOORDER
NOCYCLE ;
CREATE OR REPLACE TRIGGER TABDATA_LIVE_CYCLE_SEQ_ID_ART
before insert on TABDATA_LIVE_CYCLE
for each row
begin
select TABDATA_LIVE_CYCLE_SEQ.nextval into :new.id from dual;
end ;
/
oracle数据库表实现主键自增功能
标签:before 数据表 style int 主键 with 实现 rda 功能