当前位置:网站首页>MySQL multi condition matching fuzzy query
MySQL multi condition matching fuzzy query
2022-06-25 01:15:00 【wcdunf】
// mysql edition
select * from nf_massif where
concat(IFNULL(id,''),
IFNULL(plot_number,''),
IFNULL(respective_region,''),
IFNULL(land_name,''),
IFNULL(land_area,''),
IFNULL(geographic_coordinates,''),
IFNULL(land_type,''),
IFNULL(land_price,''),
IFNULL(land_condition,''),
IFNULL(suitable_crop,''),
IFNULL(lease_term,''),
IFNULL(tenant,''),
IFNULL(create_time,''),
IFNULL(update_time,''))
like CONCAT ('% Jiyang %','% laboratory %')
//mybatis edition
select * from nf_massif where
concat(IFNULL(id,''),
IFNULL(plot_number,''),
IFNULL(respective_region,''),
IFNULL(land_name,''),
IFNULL(land_area,''),
IFNULL(geographic_coordinates,''),
IFNULL(land_type,''),
IFNULL(land_price,''),
IFNULL(land_condition,''),
IFNULL(suitable_crop,''),
IFNULL(lease_term,''),
IFNULL(tenant,''),
IFNULL(create_time,''),
IFNULL(update_time,''))
like CONCAT ('%', #{content},'%','%', #{hotZone},'%')
// Be careful : When there are many conditions , A wide range of conditions come first , The condition with small scope is placed after the condition with large scope , Once reversed , A wide range of conditions will not work
边栏推荐
- Scala IO reads by lexical units and numbers
- Golang example renewal lock: redis+channel+sync Mutex
- mysql查询时间戳转换成日期格式
- Bi-sql select into
- yasea apk 下载 镜像
- Activity lifecycle
- 天书夜读笔记——内存分页机制
- 音频PCM数据计算声音分贝值,实现简单VAD功能
- Using macro code to generate handwriting automatically in word or WPS
- Golang示例续期锁:Redis+Channel+sync.Mutex
猜你喜欢

Scala IO read by line

Zuckerberg demonstrated four VR head display prototypes, and meta revealed the "family" of metauniverse

51 single chip microcomputer multi computer communication

4 ans d'expérience de travail, 5 modes de communication Multi - thread ne peuvent pas être décrits, vous osez croire?

Bi-sql select into

汇编语言(4)函数传参

Text editor for QT project practice - Episode 10

Bi-sql delete

丹麦技术大学首创将量子计算应用于能源系统潮流建模

使用 Loki 微服务模式部署生产集群
随机推荐
Introduction to bi-sql wildcards
1. 封装自己的脚手架 2.创建代码模块
纹理增强
Bi-sql create
VB 学习笔记
Novice, let me show you the "soft test" at one time
Start service 11111
The latest QQ wechat domain name anti red PHP program source code + forced jump to open
腾讯搬家了!
yasea apk 下载 镜像
2022r1 quick opening pressure vessel operation test questions and answers
Use redis' sorted set to make weekly hot Reviews
Examination questions and mock examination for safety management personnel of hazardous chemical business units in 2022
图书馆管理系统代码源码(php+css+js+mysql) 完整的代码源码
2022 crane driver (limited to bridge crane) examination question bank simulated examination platform operation
Preliminary understanding of qtoolbutton
Introduction to smart contract security audit delegatecall (2)
图片旋转移动缩放渐变
Scala template method pattern
汇编语言(2)基础知识-debug