<insert id
= "方法名" parameterType
= "java.util.List" useGeneratedKeys
= "false" flushCache
= "false">
insert into `表名`
(
ID
,
字段
1,
字段
2,
字段
3
) SELECT
序列
.NEXTVAL AS ID
, A
.*
FROM
(
<foreach collection
="list" item
= "item" index
="index" spearator
="UNION ALL">
SELECT
#
{参数
1},
#
{参数
2},
#
{参数
3}
FROM dual
</foreach
>
) A
</insert
>
转载请注明原文地址: https://lol.8miu.com/read-133.html