oracle 自增触发器问题
创建序列:CREATESEQUENCEperson_seqINCREMENTBY1STARTWITH1MAXVALUE99999999==================...
创建序列:
CREATE SEQUENCE person_seq
INCREMENT BY 1
START WITH 1
MAXVALUE 99999999
=======================
CREATE OR REPLACE TRIGGER person_id_trigger
BEFORE INSERT
ON PERSON
FOR EACH ROW
Begin
SELECT person_seq.NEXTVAL
INTO :NEW.id
FROM DUAL;
End;
[Err] ORA-24344: 成功, 但出现编译错误
创建出发器时,却报错。 求解!!!谢谢 展开
CREATE SEQUENCE person_seq
INCREMENT BY 1
START WITH 1
MAXVALUE 99999999
=======================
CREATE OR REPLACE TRIGGER person_id_trigger
BEFORE INSERT
ON PERSON
FOR EACH ROW
Begin
SELECT person_seq.NEXTVAL
INTO :NEW.id
FROM DUAL;
End;
[Err] ORA-24344: 成功, 但出现编译错误
创建出发器时,却报错。 求解!!!谢谢 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询