where 1=1where 1=1:为了满足多条件查询页面中不确定的各种因素而采用的一种构造一条能正确运行的动态SQL语句的一种方法。 <select id="findByUser" resultType="user" parameterType="user"> select * from user where 1=1 <if test="username!=null and username != '' "> an
摘要由CSDN通过智能技术生成
where 1=1
where 1=1:为了满足多条件查询页面中不确定的各种因素而采用的一种构造一条能正确运行的动态SQL语句的一种方法。
where 1=1where 1=1:为了满足多条件查询页面中不确定的各种因素而采用的一种构造一条能正确运行的动态SQL语句的一种方法。 <select id="findByUser" resultType="user" parameterType="user"> select * from user where 1=1 <if test="username!=null and username != '' "> an