When creating MYSQL triggers, what does “FOR EACH ROW” do? What would happen if you left it out? What are some things you could replace it with and what would they do?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
“FOR EACH ROW” is just part of the syntax.
It is there just to remind you that the trigger will actually act on EACH ROW. That’s it.
You cannot omitted because you will receive an error.