标签:
--like
select * from user where name like CONCAT(‘%‘,CONCAT(#{names,jdbcType=VARCHAR},‘%‘ ))
-in 传集合
<select id="name" resultType="xxxxx">
select * from user where ID in
<foreach collection="list" item="item" open="(" separator="," close=")">
#{item,jdbcType=VARCHAR}
</foreach>
</select>
标签:
原文地址:http://www.cnblogs.com/dashanruolong/p/5625801.html