Home > Database > Mysql Tutorial > body text

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

WBOY
Release: 2016-06-06 09:42:46
Original
1310 people have browsed it

ibatismysql数据

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template