您的位置:首页 > 数据库 > Oracle

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

2017-06-29 17:37 363 查看


<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>

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: