当前位置:网站首页>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
- ESP32 LVGL8. 1 - slider slider (slider 22)
- Nacos作为服务注册中心
- Xlslib use
- 高层次人才一站式服务平台开发 人才综合服务平台系统
- [play with lighthouse] Tencent cloud lightweight server builds a full platform video analysis video download website
- C1000k TCP connection upper limit test 1
- How about CICC wealth? Is it safe to open an account up there
- Feature selection feature_ selection--SelectKBest
- Network protocol: SCTP flow control transmission protocol
猜你喜欢
![[记录]TypeError: this.getOptions is not a function](/img/c9/0d92891b6beec3d6085bd3da516f00.png)
[记录]TypeError: this.getOptions is not a function

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

Client interns of a large factory share their experience face to face

Druid SQL和Security在美团点评的实践

MySQL restores or rolls back data through binlog

FTP, SSH Remote Access and control

binlog2sql 工具安装使用及问题汇总

From technical system to business insight, the closing chapter of the practice of small and medium-sized R & D team structure

Openharmony open source developer growth plan, looking for new open source forces that change the world!

I just want to leave a note for myself
随机推荐
Druid SQL和Security在美团点评的实践
Wechat video extraction and receiving file path
Fundamentals of machine learning theory -- some terms about machine learning
Getting started with vcpkg
Use of content provider
Implementation of TCP UDP communication with golang language
The type initializer for ‘Gdip‘ threw an exception
Deeply understand what new and make in golang are and what are the differences?
Use of kotlin collaboration in the project
OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
WebView opens H5 video and displays gray background or black triangle button. Problem solved
[today in history] April 23: the first video uploaded on YouTube; Netease cloud music officially launched; The inventor of digital audio player was born
Wechat applet part of the mobile phone Preview PDF did not respond
Sword finger offer II 116 Number of provinces - spatial complexity O (n), time complexity O (n)
SSDB基础2
Coolweather is revised and connected to the wind weather interface to realize the broken line diagram of temperature
ArcMap连接 arcgis server
SQL Server database in clause and exists clause conversion
c#:泛型反射
该买什么设备,Keysight 给你挑好了