简单修改触发器
创建时语句:
CREATE SEQUENCE SEQ_SITEPRO_ATTR INCREMENT BY 1 START WITH 7922 NOCYCLE CACHE 10 ORDER;
有触发器,后来需求原因,删掉触发器。
修改触发器:
CREATE OR REPLACE TRIGGER TRI_FOR_SITEPRO_ATTR
BEFORE INSERT ON SITEPRO_ATTR
FOR EACH ROW
DECLARE
BEGIN
SELECT SEQ_SITEPRO_ATTR.NEXTVAL INTO:NEW.ID FROM DUAL;
END TRI_FOR_SITEPRO_ATTR;