How do I prevent a recursive Interbase trigger
Posted on 2010-09-23
How do I update multiple rows in a table using a trigger without encounting a recursive trigger scenario? For instance, you change the price for an item in Group 1, the idea would be for the trigger to set the price for every other item in the table in Group 1 to the same price. However, this is an easy scenario to encounter a recursive trigger when running an update statement on the same table. Any ideas on how to accomplish this with a trigger or trigger/procedure?
Item Price Group
Item1 1.00 1
Item2 2.00 2
Item3 1.00 1
Edit price for Item 1 to 3.00 should also change Item3 to 3.00.