在使用mybatis进行批量插入时,发现对于使用Oracle的自动增长序列时提示 : 

ORA-02287: 此处不允许序号 的错误,下面的这种使用可以解决问题: 

 

<!-- 批量插入 -->

    <insert >
            SELECT
            #{item.presonName},
            #{item.presonTel},
            #{item.presonEmail},
            #{item.presonAge}
            from dual 
             </foreach>
        ) A
    </insert>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案