FALCONSEYE
Programmer
I am trying insert a PK as a FK to another table. Inside my trigger, I have:
when i change something on tbl2, i get a tbl1 primary key constraint violated error. what can i do?
thanks in advance,
Code:
tmpTHID number;
select mySeq.nextval into tmpTHID from dual;
insert into tbl1 ( tmpTHID, .... )
insert into tbl2 (id, tmpTHID, ... )
when i change something on tbl2, i get a tbl1 primary key constraint violated error. what can i do?
thanks in advance,