tags:

views:

17

answers:

1

I would like to create an after update trigger that runs only once even if multiple rows have been updated.

+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
I'm trying to break away from MS SQL SERVER but MySQL keeps giving me reasons not to.
Ovidiu Pacurar
@Ovidiu Pacurar - Sometimes you get what you pay for :).
dcp