mabatis批量更新oracle数据库

来源:互联网 发布:网络监控系统软件 编辑:程序博客网 时间:2024/05/19 01:13

http://www.cnblogs.com/hyq0002013/p/6077847.html#undefined转

mybatis执行批量更新update 的方法oracle小记


<update id="updateLicaiAllList" parameterType="java.util.List">
<foreach collection="list" item="item" index="index" open="begin" close="end;" separator="">
   update tmi_licai_all t 
   set 
   t.est_amount=#{item.estAmount}
   where t.licai_id = #{item.licaiId};
   </foreach>
</update>
原创粉丝点击