xml中where中的查询 select * from a <where> <!-- 模糊查询 --> <if test="name" !=null || name != ""> and name like ‘%‘||#{name}||‘%‘ </if> <if test="age" !=null || age!= ""> and name = #{age} </if> </where>
xml中模糊查询
原文:https://www.cnblogs.com/lidar/p/12957980.html