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>

相关文章:

  • 2022-02-24
  • 2022-01-03
  • 2022-01-22
  • 2021-11-17
  • 2021-06-29
  • 2021-04-05
  • 2022-12-23
猜你喜欢
  • 2021-08-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-26
  • 2022-12-23
  • 2021-12-18
相关资源
相似解决方案