Home MyBatis中使用模糊查询
Post
Cancel

MyBatis中使用模糊查询

1
2
3
<if test='testdata != null and testdata !=""'>
    AND T.TEST_DATA LIKE CONCAT(CONCAT('%', #{testdata, jdbcType = VARCHAR}), '%') 
</if>
This post is licensed under CC BY 4.0 by the author.