序列是结合触发器使用的
CREATE OR REPLACE TRIGGER TBLPOWERFACTORVALUELIMIT_TRIG
BEFORE INSERT ON TBLPOWERFACTORVALUELIMIT
REFERENCING OLD AS OLD NEW AS NEW FOR EACH ROW
DECLARE
BEGIN
SELECT TBLPOWERFACTORVALUELIMIT_SEQ.NEXTVAL INTO :NEW.LIMITID FROM DUAL;
END;