摘要:
mybatis批量插入oracle时需要显式指定为 useGeneratedKeys="false" 不然报错~~~ 正确的mybatis的mapper的sql配置如下: 另外一种方法是 insert into table(...) (select ... from dual) union all 阅读全文
摘要:
<!-- 批量删除 --> <delete id="deleteAll" parameterType="String"> delete from <include refid="tableName"></include> where UUID in <foreach item="item" inde 阅读全文