Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Triggers recursive call
What you have to do is the following:
That's the generic method for resolving mutating tables errors. However, I am curious about your example -- it seems to make no sense. What is it you are trying to do?
Regards,
Diana
-----Original Message-----
From: Jordi Sanmarti [mailto:JSanmarti_at_tss.com.pe]
Sent: Wednesday, November 22, 2000 7:35 PM
To: Multiple recipients of list ORACLE-L
Subject: Triggers recursive call
Hi to all,
Does anybody know how setup the database to avoid any trigger recursive call?
Look at this dummy example: Trigger is "statement" related type trigger (not of "for each row" type). If I run the below using "for each row" clause I get mutating error. create or replace trigger tr_booking after update on booking declare cont number; begin ... update booking set col1 = col1 + 10 where col2 = 'A'; ... end; / TIA, Jordi
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Mon Nov 27 2000 - 12:58:31 CST