Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> mutation problem in triggers
I was wondering if anyone could tell me why these two triggers are conflicting. I get the following error:
ERROR at line 1:
ORA-04091: table CONTACT.PERSONAL_INFO is mutating, trigger/function may not
see
it
ORA-06512: at "CONTACT.PERSONAL_POSTINSERT", line 4
ORA-04088: error during execution of trigger 'CONTACT.PERSONAL_POSTINSERT'
CREATE OR REPLACE TRIGGER personal_preinsert
BEFORE INSERT ON personal_info
FOR EACH ROW
BEGIN
/*Set the value of the key for the parent table*/
SELECT contact_personal_seq.nextVal INTO :new.personal_key FROM dual;
/*Additional Table*/
INSERT INTO additional_info VALUES
(contact_additional_seq.NEXTVAL,NULL, contact_personal_seq.CURRVAL);
END;
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
Received on Thu Mar 05 1998 - 00:00:00 CST