当前位置:网站首页>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
边栏推荐
- Deeply understand what new and make in golang are and what are the differences?
- 12 examples to consolidate promise Foundation
- 8266 obtain 18b20 temperature
- C1000k TCP connection upper limit test 1
- Methods of nested recycleview to solve sliding conflict and incomplete item display
- 中金财富怎么样?在上边开户安全吗
- SSDB Foundation
- c1000k TCP 连接上限测试
- Minesweeping II of souI instance
- ArcMap连接 arcgis server
猜你喜欢

从技术体系到商业洞察,中小研发团队架构实践之收尾篇

Solutions such as unknown or garbled code or certificate problem prompt in Charles's mobile phone packet capture, actual measurement.

ESP32 LVGL8. 1 - input devices (input devices 18)

开关电源设计分享及电源设计技巧图解

MVVM model

Simple use of navigation in jetpack

I just want to leave a note for myself

剑指 Offer II 116. 省份数量-空间复杂度O(n),时间复杂度O(n)

MySQL Téléchargement et installation de la version Linux

mysql_linux版本的下載及安裝詳解
随机推荐
The type initializer for ‘Gdip‘ threw an exception
redis优化系列(三)解决主从配置后的常见问题
为何PostgreSQL即将超越SQL Server?
Practice of Druid SQL and security in meituan review
Esp32 (UART event) - serial port event learning (1)
Esp32 (UART ecoh) - serial port echo worm learning (2)
Getting started with vcpkg
Implementation of TCP UDP communication with golang language
Nacos集群搭建和mysql持久化配置
ESP32 LVGL8. 1 - arc (arc 19)
c1000k TCP 连接上限测试
【历史上的今天】4 月 23 日:YouTube 上传第一个视频;网易云音乐正式上线;数字音频播放器的发明者出生
After opening the original normal project, the dependency package displays red and does not exist.
12 examples to consolidate promise Foundation
mysql_linux版本的下载及安装详解
2022.04.23 (the best time for lc_714_to buy and sell stocks, including handling charges)
Network protocol: SCTP flow control transmission protocol
The fifth bullet of MySQL learning -- detailed explanation of transaction and its operation characteristics
MySQL Téléchargement et installation de la version Linux
SSDB基础1