问题:
<!--条件查询-->
<select id="list" resultType="com.qqq.pojo.Ques">
select *
from online_examination.que
<where>
<if test="title != null">
title like concat('%',#{title},'%')
</if>
<if test="type != null">
and type = #{type}
</if>
<if test="point != null">
and point = #{point}
</if>
</where>
</select>
sql语句如上,是查询该表所有内容的,但当条件中有''
时;
后端会出现这样的sql语句,但没有报错
去除掉引号就可以正常使用了