select * from user where <foreach collection="address" open="address in(' " separator="','" item="address" close="')" >
#{address}
</foreach>
这边因为在意了(‘ ’,‘ ’)手动加了单引号,事实上不需要只要这样( , )就可
因为弄进去的字符串是String不用手动弄了
select * from `user` where address in
<foreach collection="address" open="(" separator="," item="list" close=")" >
#{list}
</foreach>