oracle 批量插入
(此处是截图转文字的代码,复制过去可能报错,但是语法是没问题的、、、、)
<!--批量插入--> <insert id= ”saveListVacationLog" parameterType="java.util.List"> INSERT ALL <foreach collection="list" item=”item" index=" index"> INTO OA.EHR_VACATION_LOG (ID,TYPE, START_TIME , END TIME, SUM, USERID, VACATION_ID) VALUES ( #{item.logId, jdbcType =VARCHAR}, #{item.type, j dbcType =VARCHAR}, #{ item.startDate , jdbcType =VARCHAR}, #{item.endDate, jdbcType=VARCHAR}, #{item.3um, jdbcType=VARCHAR}, #{item.userId, jdbcType=VARCHAR}, #{item.id, jdbcType=VARCHAR}
) </foreach> SELECT 1 FROM DUAL </insert>