当前位置:网站首页>SQL server requires to query the information of all employees with surname 'Wang'
SQL server requires to query the information of all employees with surname 'Wang'
2022-04-23 19:08:00 【Little brother】
For recent projects, the last name is required to be queried ‘ Li ’ Employee information , According to what I learned earlier LIKE '% millet %' This statement , Query all the content about Xiaomi , also
It's called fuzzy query .
%: Represents any string length
_: Represents the length of a single string
Because the surname Li can't all be 2 A word Li X, It could be 3 A word Li XX, So we can't use LIKE '_ Li _' , But to use. LIKE '% Li %'
And what we want to check is the surname Li, not the name related to li , therefore LIKE '% Li %' To write LIKE ' Li %'
select * from Table WHERE Name like ' Li %'
So all the people surnamed Li have been found out .
summary :
LIKE '% Li %' :‘ Li ’ Add... Around the word % Express ‘ Li ’ word There can be words on the left , There can also be words on the right , You can also have words on only one side or no words at all , This is
Is to query all and ‘ Li ’ Word related content .
LIKE ' Li %' :‘ Li ’ Add... To the right of the word % Express ‘ Li ’ word There can be words or no words on the right , This is the query to ‘ Li ’ word Content at the beginning
LIKE '% Li ' :‘ Li ’ Add... To the left of the word % Express ‘ Li ’ word Left The side can have words or no words , This is the query to ‘ Li ’ word Ending content
版权声明
本文为[Little brother]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210601423166.html
边栏推荐
- The fifth bullet of MySQL learning -- detailed explanation of transaction and its operation characteristics
- Use of kotlin collaboration in the project
- 剑指 Offer II 116. 省份数量-空间复杂度O(n),时间复杂度O(n)
- ESP32 LVGL8. 1. Detailed migration tutorial of m5stack + lvgl + IDF (27)
- I just want to leave a note for myself
- Redis common interview questions
- Using 8266 as serial port debugging tool
- Recyclerview control list item layout match_ Fundamental principle of parent attribute invalidation
- 2022.04.23 (lc_763_divided into letter interval)
- Nacos as service registry
猜你喜欢

Wechat video extraction and receiving file path

MVVM model

2022.04.23(LC_714_买卖股票的最佳时机含手续费)
![[advanced level 11 of C language -- character and string functions and their simulation implementation (2)]](/img/47/521bd7f144b0d6a5759d10067c9bea.png)
[advanced level 11 of C language -- character and string functions and their simulation implementation (2)]

ESP32 LVGL8. 1 - bar progress bar (bar 21)

Introduction to ROS learning notes (I)

ESP32 LVGL8. 1. Detailed migration tutorial of m5stack + lvgl + IDF (27)

【历史上的今天】4 月 23 日:YouTube 上传第一个视频;网易云音乐正式上线;数字音频播放器的发明者出生

Esp32 drive encoder -- siq-02fvs3 (vscade + IDF)

Esp32 (UART ecoh) - serial port echo worm learning (2)
随机推荐
Using bafayun to control the computer
Sentinel service fusing practice (sentinel integration ribbon + openfeign + fallback)
高层次人才一站式服务平台开发 人才综合服务平台系统
The fifth bullet of MySQL learning -- detailed explanation of transaction and its operation characteristics
【历史上的今天】4 月 23 日:YouTube 上传第一个视频;网易云音乐正式上线;数字音频播放器的发明者出生
: app: transformclasseswithrobustfordevrease meituan hot repair compilation error record
SSDB基础2
ESP32 LVGL8. 1 - checkbox (checkbox 23)
网络协议之:sctp流控制传输协议
Introduction to ROS learning notes (I)
Esp32 (UART event) - serial port event learning (1)
FTP、ssh远程访问及控制
Tencent map and high logo removal method
【C语言进阶11——字符和字符串函数及其模拟实现(2))】
Simple use of navigation in jetpack
On the forced conversion of C language pointer
Deeply understand what new and make in golang are and what are the differences?
After opening the original normal project, the dependency package displays red and does not exist.
【玩转Lighthouse】腾讯云轻量服务器搭建全平台视频解析视频下载网站
SQL Server database in clause and exists clause conversion