I wrote a trigger that runs before a row is deleted that updates a table summarizing the data from this table. The trigger works well when I delete a single row at a time. However, if I were to delete multiple rows at once with a statement like
DELETE FROM myTable WHERE id BETWEEN 1 and 100;
Will the trigger completely run on the first row before the next row is deleted or will the triggers run all at the same time?
from http://dev.mysql.com/doc/refman/5.5/en/trigger-syntax.html
The delete transaction will only occur once, but then for every row affected by query the trigger will occur
The trigger will completely run for every single row, see Trigger FAQ
That is valid for the currently newest version, MySQL 5.7 too.