Q

Table triggers vs. row triggers

A MySQL expert describes the difference between table triggers and row triggers and what MySQL will support.

What are the differences between statement triggers and row triggers?

Statement triggers "fire" once for each statement no matter how many rows that statement affects. Row triggers

act for each row affected. A statement like "UPDATE myTable SET myField = 1" would fire a statement trigger only once. That same statement would cause a row trigger to fire as many times as there are rows in the table. MySQL currently only supports row triggers.

This was first published in December 2006

Dig deeper on Linux administration tools

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchDataCenter

SearchServerVirtualization

SearchCloudComputing

SearchEnterpriseDesktop

Close