MySQL多表更新
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MySQL多表更新相关的知识,希望对你有一定的参考价值。
update payb a inner join payb_item b on a.paybno=b.paybno inner join loan_vilt c on b.loano=c.loano inner join loan d on b.loano=d.loano inner join loan_repay e on e.loano=d.loano and e.idx=c.idx set a.state=#{newst},a.vn=a.vn+1,a.uptime=now(), c.state=#{loan_vilt_newst},c.vn=c.vn+1,c.uptime=now(), d.state=#{loan_newst},d.vn=d.vn+1,d.uptime=now(), e.state=#{loan_repay_newst},e.vn=e.vn+1,e.uptime=now() where a.paybno=#{paybno} and a.state=#{oldst} and a.vn=#{curvn} and c.state=#{loan_vilt_oldst} and d.state in (#{loan_oldst_ins}) and e.state=#{loan_repay_oldst};
本文出自 “熔 岩” 博客,请务必保留此出处http://lavasoft.blog.51cto.com/62575/1876668
以上是关于MySQL多表更新的主要内容,如果未能解决你的问题,请参考以下文章