<insert id="insertbatchinfotoemploees" parameterType="java.util.List">
insert into INFOTOEMPLOEE
select INFO_EMPLOEES.NEXTVAL,A.* from( <!--INFO_EMPLOEES为自增序列-->
<foreach collection="list" item="item" index="index"
separator="UNION">
SELECT
#{item.infoid}, #{item.empoyessid},
#{item.infostate}
from dual
</foreach>
) A
</insert>
mybatis oracle批量插入,布布扣,bubuko.com
原文地址:http://6548877.blog.51cto.com/6538877/1433827