当前位置:网站首页>MySQL advanced (VI) introduction to four common uses of fuzzy query
MySQL advanced (VI) introduction to four common uses of fuzzy query
2022-07-19 13:08:00 【InfoQ】
mysqlOne 、%
%%SELECT * FROM [user] WHERE u_name LIKE '% 3、 ... and %';SELECT * FROM [user] WHERE u_name LIKE '% 3、 ... and %' AND u_name LIKE '% cat %';SELECT * FROM [user] WHERE u_name LIKE '% 3、 ... and % cat %' Two 、_
SELECT * FROM [user] WHERE u_name LIKE '_ 3、 ... and _';SELECT * FROM [user] WHERE u_name LIKE ' 3、 ... and __';3、 ... and 、[ ]
SELECT * FROM [user] WHERE u_name LIKE '[ Zhang liwang ] 3、 ... and '; [ ] SELECT * FROM [user] WHERE u_name LIKE ' The old [1-9]';Four 、[^ ]
SELECT * FROM [user] WHERE u_name LIKE '[^ Zhang liwang ] 3、 ... and ';SELECT * FROM [user] WHERE u_name LIKE ' The old [^1-4]'; 5、 ... and 、 Query content contains wildcard processing
%_[[ ]function sqlencode(str)
str=replace(str,"';","';';")
str=replace(str,"[","[[]") ';
str=replace(str,"_","[_]")
str=replace(str,"%","[%]")
sqlencode=str
end function6、 ... and 、 Expanding reading MySQL Data table with OR Multi criteria query of
OROR- As long as one of these query conditions is met , Such records will be found out .
- If you do not meet any of these query conditions , Such records will be excluded .
Conditional expression 1 OR Conditional expression 2 [...OR Conditional expression n]6.1 example 1
SELECT * FROM employee WHERE d_id=1001 OR sex LIKE ' male ';6.2 example 2
SELECT * FROM employee WHERE
num IN(1,2,3) OR age BETWEEN 24 AND 26
OR homeaddress LIK '% Xiamen City %';ORAND6.3 example 3
SELECT * FROM employee WHERE num IN(1,3,4) AND age=25 OR sex=' Woman ';SELECTSELECT * FROM employee WHERE sex=' Woman ' OR num IN(1,3,4) AND age=25;SELECTANDORANDOR=>INBETWEEN ANDLIKELIKE%_边栏推荐
- What are the pain points of collaborative tools collaborative office management
- 力扣413-等差数列划分——动态规划
- LeetCode 0565. Array nesting: convert to graph + modify in place の optimization
- Brief analysis of circuit fault
- XML文件解析
- Basic database operations in MySQL
- 全球金融危机来袭,如何科学理性投资?2020-03-17
- Using the case statement will produce a latch condition
- Metal organic framework / nitrogen carbide nano sheet (uio-66/hocn) composite | mil-101 loaded Au Pd alloy nanoparticles | chemical reagent MOF customization
- 通货收缩的市场何时反转?我们该如何操作?2020-03-13
猜你喜欢

力扣64-最小路径和——动态规划入门题型
[email protected] )|Rhodamine 6G modified MOF material | catalase @zif composite | MOF"/>Lanthanide metal organic skeleton( [email protected] )|Rhodamine 6G modified MOF material | catalase @zif composite | MOF

可视化ETL工具Kettle概念、安装及实战案例

力扣413-等差数列划分——动态规划
[email protected] Cobalt iron bimetallic organic skeleton cox/mil-100 (FE) | [email protected]

XML文件解析

R语言--Cox模型校准曲线原理(一)数据来源
[email protected] Nanocomposites | zif-8/ poly"/>MOF customized materials | bimetallic CuNi MOF nano materials | core-shell structure [email protected] Nanocomposites | zif-8/ poly

Panasonic A6 servo driver external absolute value grating ruler full closed loop parameter setting

Metal organic framework / nitrogen carbide nano sheet (uio-66/hocn) composite | mil-101 loaded Au Pd alloy nanoparticles | chemical reagent MOF customization
随机推荐
jvm自学总结
When will the deflationary market reverse? How should we operate? 2020-03-13
Mysql的知识梳理
Mycat2 builds MySQL master-slave separation
Force buckle 64 minimum path sum -- Introduction to dynamic programming
Stable super odds, 9 years old mixin | 2022 Jincang innovative product launch was successfully held
力扣70-爬楼梯——动态规划
LeetCode 0118. Yanghui triangle
Li Kou 413 division of equal difference sequence dynamic programming
力扣413-等差数列划分——动态规划
CMOS开关学习(一)
Nombre minimal d'échanges
二叉树2—对称性递归问题
最小交换次数
Cobalt iron bimetallic organic skeleton cox/mil-100 (FE) | [email protected]
10 minutes to customize the pedestrian analysis system, detection and tracking, behavior recognition, human attributes all in one!
Differences between get requests and post requests and usage examples
Method of converting video format to ffmpeg and exporting GIF dynamic graph
标签球问题
LeetCode 0117. Populate the next right node pointer II of each node