当前位置:网站首页>QueryWrapper method explained
QueryWrapper method explained
2022-08-02 18:04:00 【web18484626332】
Inherited from AbstractWrapper, its own internal property entity is also used to generate where conditions
and LambdaQueryWrapper, which can be obtained through the new QueryWrapper().lambda() method.
queryWrapper.lt() - less than
queryWrapper.le() - less than or equal to
queryWrapper.gt() - greater than
queryWrapper.ge() - greater than or equal to
queryWrapper.eq() -- equal to
queryWrapper.ne() -- not equal to
queryWrapper.betweeen("age", 10, 20) -- age between values 10 and 20
queryWrapper.notBetweeen("age", 10, 20) -- age is not between values 10 and 20
queryWrapper.like("attribute", "value") -- fuzzy query matches value '%value%'
queryWrapper.notLike("attribute", "value") - fuzzy query does not match the value '% value%'
queryWrapper.likeLeft("attribute", "value") - fuzzy query matches the last value '% value'
queryWrapper.likeRight("attribute", "value") - fuzzy query matches the first value 'value %'
queryWrapper.isNull() - value is empty or null
queryWrapper.isNotNull() -- value is not empty or null
queryWrapper.in("property", condition, condition) -- value that matches multiple conditions
queryWrapper.notIn("property", condition, condition) -- noValues matching multiple criteria
queryWrapper.or() -- or
queryWrapper.and() -- and
queryWrapper.orderByAsc("property") -- sorted by property in ascending order
queryWrapper.orderByDesc("attribute") - sort in descending order according to the attribute
queryWrapper.inSql("sql statement") - the value that conforms to the sql statement
queryWrapper.notSql("sql statement") - does not conform to the SQL statementvalue
queryWrapper.esists("SQL statement") - query for values that match the SQL statement
queryWrapper.notEsists("SQL statement") - query for values that do not match the SQL statement
Let me introduce myself first. The editor graduated from Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Ali in 2018, until now.I know that most junior and intermediate java engineers want to upgrade their skills, they often need to explore their own growth or sign up to study, but for training institutions, the tuition fee is nearly 10,000 yuan, which is really stressful.Self-learning that is not systematic is very inefficient and lengthy, and it is easy to hit the ceiling and the technology stops.Therefore, I collected a "full set of learning materials for java development" for everyone. The original intention is very simple. I hope to help friends who want to learn by themselves but don't know where to start, and at the same time reduce everyone's burden.Add the business card below to get a full set of learning materials
边栏推荐
猜你喜欢
随机推荐
Eight big software attack overview of supply chain
QT基础第四天(4)qt事件机制:事件基础概念,常见事件机制,事件处理以及事件的重写
23、wpf之布局(一)
Qt | Qt 的项目文件.pro 文件详解
为什么我不再推荐枚举策略模式?
Apache management and web optimization
CS5210的参数详情资料分享
浅聊组合函数
轻松入门自然语言处理系列 专题8 源码解读──基于HMM的结巴分词
【学习笔记之菜Dog学C】自定义类型详解(结构体+枚举+联合)
DevOps开发工具对比
esp32之arduino配置下载提速
AI+BI+可视化,Sugar BI架构深度剖析
助力疫情防控,30行代码就能搞定无服务器实时健康码识别!
Qt | 模态对话框和非模态对话框 QDialog
QueryWrapper方法解释
MySQL【数据类型】
SIGIR'22 推荐系统论文之POI篇
Sql文件导入数据库-保姆级教程
tiup mirror rotate









