I would like to create an after update trigger that runs only once even if multiple rows have been updated.
views:
17answers:
1
+2
A:
Nope: http://dev.mysql.com/doc/refman/5.0/en/faqs-triggers.html#qandaitem-23-5-1-11
In MySQL 5.0, all triggers are FOR EACH ROW—that is, the trigger is activated for each row that is inserted, updated, or deleted.
However, see the following hack.
dcp
2010-07-28 14:31:27
I'm trying to break away from MS SQL SERVER but MySQL keeps giving me reasons not to.
Ovidiu Pacurar
2010-07-28 14:39:51
@Ovidiu Pacurar - Sometimes you get what you pay for :).
dcp
2010-07-28 14:45:17