您的位置:首页 > 其它

mybatis 查询多个条件IN的使用方法

2016-12-19 09:57 399 查看
  <select id="findLabel" resultMap="BaseResultMap" parameterType="java.lang.String">

  select * from tb_label  where id in

  <foreach item="item" index="index" (参数名称)collection="list" open="(" separator="," close=")">  

  #{item}
  </foreach>  

用list传递参数
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: