How to write a trigger in php

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.