[mybatis] insert, update batch


insert
insert into A(
a,
b)
values
<foreach collection="collection" item="item" index="index" separator=",">
  (
  #{a},
  #{b}
  )
</foreach>
update
<foreach collection="collection" item="item" index="index" separator=";">
  update A
  set A = #{A},
  	  B = #{B}
  where C = #{C}
  </foreach>
updateを使用するには、jdbc設定に「allowMultiQuaries=true」を追加します.
->しかし、これはテスト用のOKです.実際のサービスではXです.