1. 程式人生 > >oracle like %% 用法

oracle like %% 用法

<select id="selectByExampleAll" resultMap="BaseResultMap" parameterType="com.hongwan.web.dao.entity.FRM_CLXX" >
  select *    from FRM_CLXX where 1=1
  <if test=" hphm != null and hphm != ''">
    AND hphm LIKE  '%${hphm}%'
  </if>
  <if test="bjlx==0" >
    and  bjlx='0'
  </if>
  <if test="bjlx==1" >
    and  bjlx='1'
  </if>
  <if test="bjlx==2" >
    and  bjlx='2'
  </if>

</select>