1、批量插入
`<insert
id="insertBatch"
parameterType="java.util.List">
insert into
t_student(name, age, class)
values
<foreach
collection="list"
item="item"
index="index"
separator=",">
(
#{item.name,jdbcType=VARCHAR},
#{item.age,jdbcType=INTEGER},
#{item.class,jdbcType=LONGVARCHAR}
)
</foreach>
`
2、批量更新