php - avoiding for each row in mysql -


does know if there way not have for each row syntax in mysql query?

maybe workaround or something?

i need use after insert trigger application insert multiple times part of insert.

so trigger sees data in compounding fashion part of every insert.

the for each row syntax required in after insert trigger definition. mysql supports "row level" triggers only. mysql doesn't support "statement level" triggers dml operations. design.


is there workaround?

no, there no workaround. after insert each row trigger going fired every row gets inserted. doesn't matter whether there's dozen separate insert statements each insert single row, or whether there's single insert statement inserts dozen rows. trigger fired each row.

within trigger can compare or check that, , can conditionally branch around portions of code within trigger. there's no way bypass firing on after insert trigger every row gets inserted.


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -