<select id="selectByTitleAndDocumentId" parameterType="java.lang.String" resultMap="BaseResultMap">
select * from guide where title like concat('%',#{title,jdbcType = VARCHAR},'%')
and document_id like concat('%',#{documentId,jdbcType = VARCHAR},'%') and del_flag = 0
</select>
SQL模糊查询 同时匹配多个字段
猜你喜欢
转载自www.cnblogs.com/gslgb/p/12914837.html
今日推荐
周排行