一、like
like(R column, Object val)like(boolean condition, R column, Object val)
- LIKE '%值%'
- 例:
like("name", "王")
--->name like '%王%'
#二、notLike
notLike(R column, Object val)notLike(boolean condition, R column, Object val)
- NOT LIKE '%值%'
- 例:
notLike("name", "王")
--->name not like '%王%'
三、likeLeft
likeLeft(R column, Object val)likeLeft(boolean condition, R column, Object val)
- LIKE '%值'
- 例:
likeLeft("name", "王")
--->name like '%王'
四、likeRight
likeRight(R column, Object val)likeRight(boolean condition, R column, Object val)
- LIKE '值%'
- 例:
likeRight("name", "王")
--->name like '王%'
来源地址:https://blog.csdn.net/m0_64818669/article/details/129731556