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

来源:互联网 发布:海量数据存储 编辑:程序博客网 时间:2024/05/17 14:14

<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,jdbcType=NUMERIC}
   where t.licai_id = #{item.licaiId,jdbcType=NUMERIC}
   </foreach>
</update>
 
阅读全文
0 0
原创粉丝点击