mybatis-plus sql statement splicing

Mybatis-plus method can be called:

Query described
setSqlSelect disposed SELECT query fields
where WHERE statement, stitching + WHERE condition
and AND statements, stitching + AND field = value
andNew AND statement splice + AND (field = value)
or OR statements, stitching + OR field = value
orNew OR statement, stitching + OR (field = value)
EQ is equal to =
allEq based map content equal to =
NE not equal <>
gt greater than>
GE than or equal to> =
lt smaller than <
Le is less than equal to <=
like Fuzzy queries the lIKE
notLike Fuzzy queries the nOT the lIKE
in IN query
notIn NOT IN query
isNull NULL value query
isNotNull the IS the NOT NULL
groupBy packet BY the gROUP
HAVING the HAVING keyword
orderBy BY sort the ORDER
orderAsc the ASC BY sort the ORDER
orderDesc BY DESC sort the ORDER
EXISTS EXISTS conditional statements
notExists NOT EXISTS conditional statements
between BETWEEN conditional statement
notBetween NOT BETWEEN conditional statements
addFilter free stitching SQL
Last stitching in the end, for example: last ( "LIMIT 1")

Published 18 original articles · won praise 5 · Views 6731

Guess you like

Origin blog.csdn.net/qq_28687183/article/details/82625361