当前位置:网站首页>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
边栏推荐
- Bi-sql between
- 汇编语言(4)函数传参
- I brush the question I - copy the linked list with random pointer
- ImageView shows network pictures
- Which securities company should I choose to open an account online? Is it safe to open an account online?
- 纹理增强
- 欢迎来到联想智能大屏的新世界
- VB 学习笔记
- Cobalt Strike安装教程
- How to store dataframe data in pandas into MySQL
猜你喜欢

Add information on the left and add parts on the right of the status bar

扎克伯格上手演示四款VR头显原型机,Meta透露元宇宙「家底」

Bi skill - judge 0 and null

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

Text editor for QT project practice - Episode 12

丹麥技術大學首創將量子計算應用於能源系統潮流建模

4 years of working experience, and you can't tell the five communication modes between multithreads. Can you believe it?

Assembly language (4) function transfer parameters

Bi SQL constraints

Introduction to bi-sql wildcards
随机推荐
2022r1 quick opening pressure vessel operation test questions and answers
2022 melting welding and thermal cutting recurrent training question bank simulated examination platform operation
QT electronic clock
【无标题】
Text editor of QT project practice ---------- episode 8
MySQL common basic statements (collation)
对技术的乐观,正让戴尔取得比想象中更多的成就
Preliminary understanding of qtoolbutton
Bi-sql select into
卷积与转置卷积
Scala trait inheritance class
归并排序求逆序数
How much commission does CICC wealth securities open an account? Is stock account opening and trading safe and reliable?
Transform BeanUtils to achieve list data copy gracefully
[untitled]
Simulation questions and answers of the latest national fire facility operator (senior fire facility operator) in 2022
天书夜读笔记——8.4 diskperf反汇编
What to learn in VB [easy to understand]
中金财富证券开户佣金多少呢?股票开户交易安全靠谱吗?
丹麥技術大學首創將量子計算應用於能源系統潮流建模