mybatis中中写多个update语句,和分开写多个有啥区别?
例如:
<update id="updateByPrimary" >
update 1 .....;
update 2......;
update 3......;
</update >
和
<update id="updateByPrimary1" >
update 1 .....;
</update >
<update id="updateByPrimary2" >
update 2......;
</update >
<update id="updateByPrimary3" >
update 3......;
</update >
这两种有啥区别?第一种自带事务控制嘛?