I am trying to do the batch update in myBatis with oracle Database, where i have to update 10K+ records. But when i use below
I am getting exception says 'invalid character'. It is working fine when i do single update statement multiple times. Please help with your example if you already tried this.
<update id="batchUpdate">
<foreach collection="empList" item="employee" separator=";">
UPDATE Employee
SET EMP_JOBTITLE = #{employee.jobTitle},
EMP_STATUS = #{employee.status}
WHERE Employee_ID = #{employee.empId}
</foreach>
</update>