常用詞解釋:where where 語句,拼接 +where 條件
and and 語句,拼接 + and 字段=值
andnew and 語句,拼接 + and (字段=值) (新的括號)
or or 語句,拼接 + or 字段=值
ornew or 語句,拼接 + or (字段=值)
eq 等於=alleq 基於 map 內容等於=ne 不等於
<>gt 大於》ge 大於等於》=lt 小於
<=like 模糊查詢 like
notlike 模糊查詢 not like
in in 查詢
notin not in 查詢
isnull null 值查詢
isnotnull is not null
groupby 分組 group by
orderby 排序 order by
orderasc asc 排序 order by
orderdesc desc 排序 order by
exists exists 條件語句
notexists not exists 條件語句
between between 條件語句
notbetween not between 條件語句
addfilter 自由拼接 sql
last 拼接在最後,例如:last("limit 1")
MybatisPlus常用方法
1.in qw.in r column,collection coll list list employeeservice.list qw 親測 list集合存在重複變數,in方法查詢的時候只查詢一次 list集合中含有資料庫不存在的值,不報錯,該值不查。2.like title deptvo.ge...
Mybatis Plus常用方法
mybatis plus常用方法 insert 新增 update 可以傳入條件構造器,根據條件修改 updatebyid 根據id修改 selectlist 查詢集合,可以傳入條件構造器 selectbyid 根據id查詢單條記錄 selectpage 分頁查詢,可以傳入條件構造器 delete ...
mybatis plus常用技術點
mp配置mybatis plus.config location classpath mybatis config.xml mybaits 別名包掃瞄路徑 mybatis plus.type aliases package com.lagou.mp.pojo 關閉自動駝峰對映,該引數不能和mybat...