摘要: mybatis批量插入oracle时需要显式指定为 useGeneratedKeys="false" 不然报错~~~ 正确的mybatis的mapper的sql配置如下: 另外一种方法是 insert into table(...) (select ... from dual) union all 阅读全文
posted @ 2019-04-24 17:39 滤v镜 阅读(173) 评论(0) 推荐(0) 编辑
摘要: <!-- 批量删除 --> <delete id="deleteAll" parameterType="String"> delete from <include refid="tableName"></include> where UUID in <foreach item="item" inde 阅读全文
posted @ 2019-04-24 17:20 滤v镜 阅读(219) 评论(0) 推荐(0) 编辑