<insert >

  insert into tableName(column1 , column2 , column3)

  select t.* from(

    <foreach collection="list" item="obj" index="index" sperator="union all">

    (

      select 

        #{obj.field} column1 ,

        #{obj.field} column2,

        #{obj.field} column3

      from dual

    )

    </foreach>

  )t 

</insert>

 

相关文章:

  • 2021-06-29
  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
  • 2022-01-20
  • 2022-12-23
  • 2021-09-23
猜你喜欢
  • 2021-11-26
  • 2021-07-28
  • 2021-12-02
  • 2022-12-23
  • 2021-07-01
  • 2022-02-13
相关资源
相似解决方案