当前位置:网站首页>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 | 关于QPalette的使用
tiup mirror sign
Qt | Qt 的项目文件.pro 文件详解
Alibaba "MySQL Growth Manual" Lite Edition
绝对最直白的MySQL MVCC机制总结,免费拿走
23、wpf之布局(一)
从幻核疑似裁撤看如何保证NFT的安全
VPP snort插件
form的编辑与展示的切换(输入框,单选多选框,上传图片,颜色选择器)适用个人信息的展示与修改
aPaaS低代码平台(二) | 快速构建业务模型
机械臂速成小指南(十四):多项式插值轨迹规划
数仓:金融级数仓架构转型的最佳实践(下篇)
Linux系统中mysql数据库的基本管理
并发模型和I/O模型介绍
Qt | QWidget 的一些总结
矩阵的特征值与特征向量
管理软件开发 管理软件定制开发流程
阿里巴巴《MySQL成长手册》精简版
WWW'22 推荐系统论文之序列推荐篇
数据防泄漏产品该如何选择