I have such a requirement for writing a trigger in php. I have a data table. suppose there are two fields, a and B, and the value of field B will change frequently, the value of field a + the value of field B. Each time the value of field B changes, it is added. How to implement this kind of requirement & nbsp;, it is best to have code ~~ Thank you! How to write a trigger in php
Dear friends, I have such a requirement. I have a data table. suppose there are two fields a and B in it, and the value of field B will change frequently, the value of field a = the value of field a + the value of field B. Each time the value of field B changes, it is added. We recommend that you have code to implement such a requirement ~~ Thank you!
Share: More
------ Solution --------------------
I think it is better to use database triggers.
------ Solution --------------------
Mysql has a producer. you can use the producer of mysql to implement your functions.