Skip to content
Advertisement

Fire a trigger after the update of specific columns in MySQL

In MySQL, I want to fire a trigger after the update of specific columns.

I know how to do it in Oracle and DB2:

How to do that with MySQL?

Advertisement

Answer

You can’t trigger on a particular column update in SQL. It is applied on a row.

You can put your condition for columm in your trigger with an IF statement, as below:

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement