where
作者:互联网
<select id="searchProducts" parameterType="products" resultType="products">
select *from products
<where>
<if test="pname != null">
and pname like '%${pname}%'
</if>
<if test="cid != null">
and cid = #{cid}
</if>
</where>
</select>
标签:like,cid,products,pname,where,select 来源: https://www.cnblogs.com/huaobin/p/14162717.html