Mybatis 如何使用以,隔开的字符数组
select * from tablename
where id in
<foreach collection="ids.split(',')" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
或
select * from tablename
where
find_in_set(id,#{ids})
原创
2020-06-01 07:36:46 ·
414 阅读 ·
0 评论