Home  >  Article  >  Database  >  ibatis-Mysql 在A表新增一条数据时,B表的b字段会根据A表的a字段的值增加或减小

ibatis-Mysql 在A表新增一条数据时,B表的b字段会根据A表的a字段的值增加或减小

WBOY
WBOYOriginal
2016-06-06 09:42:461280browse

ibatismysql数据

用ibatis和mysql,用excel导入表格A时,
A表有一个字段a每月还款额,B表有一个字段b总金额。_两个表根据peopleid关联_。
在A表插入一行新的数据,对应的B表的 某条数据 的字段b总金额发生更新变化。
请问在Action中或sql语句要如何实现这个功能

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn