01
02/18
oracle自增列
--创建序列 create sequence SEQ_T_CG_PLAN_ITEM_ID start with 1 increment by 1 nomaxvalue nominvalue nocycle nocache; 二、触发器 declare integrity_error exception; errno integer; errmsg char(200); dummy integer; found boolean; begin select SEQ_T_CG_PLAN_ITEM_ID.nextval into:New.id from dual; exception when integrity_error then raise_application_error(errno, errmsg); end;...