当前位置:网站首页>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
边栏推荐
- Codeforces Round #784 (Div. 4)
- The difference between ordinary inner class and static inner class
- [record] typeerror: this getOptions is not a function
- WebView opens H5 video and displays gray background or black triangle button. Problem solved
- Openharmony open source developer growth plan, looking for new open source forces that change the world!
- 【玩转Lighthouse】腾讯云轻量服务器搭建全平台视频解析视频下载网站
- SQL常用的命令
- Practice of Druid SQL and security in meituan review
- One stop service platform for high-level talents and development of comprehensive service platform system for talents
- Wechat video extraction and receiving file path
猜你喜欢

Switching power supply design sharing and power supply design skills diagram

Esp01s with Arduino development environment

ESP32 LVGL8. 1 - checkbox (checkbox 23)

12 examples to consolidate promise Foundation

MVVM model

One of the reasons why the WebView web page cannot be opened (and some WebView problem records encountered by myself)

開關電源設計分享及電源設計技巧圖解

The fifth bullet of MySQL learning -- detailed explanation of transaction and its operation characteristics

ESP32 LVGL8. 1 - msgbox message box (msgbox 28)

On the forced conversion of C language pointer
随机推荐
[play with lighthouse] Tencent cloud lightweight server builds a full platform video analysis video download website
ESP32 LVGL8. 1 - bar progress bar (bar 21)
Feature selection feature_ selection--SelectKBest
开关电源设计分享及电源设计技巧图解
The corresponding permissions required to automatically open the app in the setting interface through accessibility service
Advanced transfer learning
RPM package management
#yyds干货盘点#stringprep --- 因特网字符串预备
The type initializer for ‘Gdip‘ threw an exception
SSDB基础
Partage de la conception de l'alimentation électrique de commutation et illustration des compétences en conception de l'alimentation électrique
SSDB基础2
Yyds dry goods inventory stringprep --- Internet string preparation
Practice of Druid SQL and security in meituan review
Screen right-click menu in souI
Codeforces Round #784 (Div. 4)
Scrollto and scrollby
Simplified path (force buckle 71)
浅谈c语言指针的强制转换
Screenshot using projectmediamanager