mybatis foreach标签拼接多字段in ,和union
mybatis for标签 手写肯定是不可能,复制又经常忘记哪里有,记录一下复制方便批量添加 ,修改 ,拼接(xx,xx)in , union添加,修改:( < foreach item=“list” index=“index” collection=“list” open=“begin” close=“end;”>INSERT INTO XXX(xxx)VALUES(#{list.XXX,jdbcType=VARCHAR},);(字段,字段) in :(<
原创
2021-01-14 16:42:21 ·
7085 阅读 ·
0 评论