<insert id="add" parameterType="java.util.List" useGeneratedKeys="false">
insert into b (
c
)
SELECT a.* FROM (
<foreach collection="list" item="item" index="index" separator="UNION ALL">
SELECT
#{item.c}
FROM dual
</foreach>
) a
</insert>
insert into b (
c
)
SELECT a.* FROM (
<foreach collection="list" item="item" index="index" separator="UNION ALL">
SELECT
#{item.c}
FROM dual
</foreach>
) a
</insert>