When ibatis-Mysql adds A new data entry to table A, field B of Table B increases or decreases according to the value of field a of Table.

Source: Internet
Author: User
When using ibatis and mysql and excel to import Table A, table A has a monthly repayment amount of field A, and Table B has A total amount of field B. _ Two tables are associated with leleid _. Insert A new row of data in Table A, and the total value of field B of A data entry in Table B is updated. How can I implement this function in Action or SQL statements? ibatismysql data

When using ibatis and mysql and excel to import Table,
Table A has the monthly repayment amount of field a, and Table B has the total amount of field B. _ Two tables are associated with leleid _.
Insert A new row of data in Table A, and the total value of field B of A data entry in Table B is updated.
How can I implement this function in Action or SQL statements?

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.