当前位置:网站首页>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
边栏推荐
- 这个国庆!腾讯云WeCity陪您一同出行,点亮城市地标...
- 4年工作经验,多线程间的5种通信方式都说不出来,你敢信?
- If the order has not been paid for 30 minutes, it will be automatically cancelled. How can I achieve this?
- Basic knowledge of assembly language (2) -debug
- 利用 Redis 的 sorted set 做每周热评的功能
- Golang example renewal lock: redis+channel+sync Mutex
- AUTOCAD——两种延伸方式
- ContentResolver,拿到手机短信内容
- EVM Brief
- 对技术的乐观,正让戴尔取得比想象中更多的成就
猜你喜欢

Bi-sql between

天书夜读笔记——内存分页机制

Introduction to bi-sql wildcards

汇编语言(2)基础知识-debug

Simulation questions and answers of the latest national fire facility operator (senior fire facility operator) in 2022

Bi-sql index

Danish Technical University pioneered the application of quantum computing to power flow modeling of energy system

How to store dataframe data in pandas into MySQL

Bi-sql select into

2022 simulated 100 questions of safety officer-c certificate examination and online simulated examination
随机推荐
Convolution and transpose convolution
图书馆管理系统代码源码(php+css+js+mysql) 完整的代码源码
Scala IO read by line
yasea apk 下载 镜像
使用 Loki 微服务模式部署生产集群
Examination questions and mock examination for safety management personnel of hazardous chemical business units in 2022
QT (35) - operate excel qxlsx qaxobject
Bi-sql index
Scala object blending trait
If the order has not been paid for 30 minutes, it will be automatically cancelled. How can I achieve this?
Which securities company should I choose to open an account online? Is it safe to open an account online?
卷积与反卷积关系超详细说明及推导(反卷积又称转置卷积、分数步长卷积)
Bi skill - judge 0 and null
Tencent cloud wecity solution
Text editor for QT project practice - Episode 12
Danish Technical University pioneered the application of quantum computing to power flow modeling of energy system
C语言边界计算和不对称边界
程序员:是花光积蓄在深圳买房?还是回到长沙过“富余”生活?
[practical series] full WiFi coverage at home
Bi-sql - join