当前位置:网站首页>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
边栏推荐
- Qt | 关于样式表的使用 QStyleSheet
- 打破千篇一律,DIY属于自己独一无二的商城
- ICML/ICLR'22 推荐系统论文梳理
- 看我如何用多线程,帮助运营小姐姐解决数据校对系统变慢!
- 一文搞懂│php 中的 DI 依赖注入
- 节省50%成本!京东云重磅发布新一代混合CDN产品
- Apache management and web optimization
- Brute-force cracking of the latest JVM interview questions of Meituan: unlimited execution
- How to use PHP to implement lexical analyzer and custom language
- OneFlow源码解析:Op、Kernel与解释器
猜你喜欢
随机推荐
MPLS实验
System delay tasks and scheduled tasks
动态权重之多任务不平衡论文 (一)
SIGIR'22 推荐系统论文之POI篇
(LinkedList与链表) 和 (ArrayList与顺序表)的区别
ROS 之 KUKA iiwa编程
【服务器数据恢复】Raid阵列更换故障硬盘后数据同步失败的数据恢复案例
WWW'22 推荐系统论文之序列推荐篇
SQL实现将多行记录合并成一行
不平衡之钥: 重加权法知几何
Qt | 关于如何使用事件过滤器 eventFilter
23.支持向量机的使用
并发模型和I/O模型介绍
已经2022下半年了,居然还在说链动2+1!
【个人总结】2022.7月结
Alibaba "MySQL Growth Manual" Lite Edition
QT | VS2017 + Qt5.14.2 环境搭建
微信小程序:Framework inner error FLOW_CREATE_NODE
看我如何用多线程,帮助运营小姐姐解决数据校对系统变慢!
数组的应用实例—三子棋









