<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
时间: 2024-12-28 23:28:59