动态SQL之、条件判断

错误方式一:  在mybatis的动态sql语句中使用<if>标签能够判断sql中的条件是否成立。sql <select id="getPerson" resultType="com.lzj.bean.Employee"> select * from tbl_employee where <if test="id!=null">
相关文章
相关标签/搜索