mapper中forech遍历list
List<Long> ids = new ArrayList<>(){1,2,3};select * from table where id in<foreach collection="ids" open="(" close=")" separator="," item="item">#{item}</foreach>
·
List<Long> ids = new ArrayList<>(){1,2,3};
select * from table where id in
<foreach collection="ids" open="(" close=")" separator="," item="item">
#{item}
</foreach>
更多推荐
已为社区贡献3条内容
所有评论(0)