当前位置:网站首页>The difference between like,%, - in database query SQL
The difference between like,%, - in database query SQL
2022-06-26 02:41:00 【New yanghaibo】
% The percent character : Means any character appears any number of times ( It can be 0 Time )
SQL Sentence selection name In letters "k" All customers at the end :
SELECT * FROM Websites WHERE name LIKE '%k'; Execute output result :
Underline wildcards : Indicates that only a single character can be matched , No more, no less , It's just a character .
Query employee name to employee 1 start , People with only one character after them
select * from #tmpEmployee where EmpName like ' staff 1_'
like The operator : LIKE The function is to indicate mysql The latter search pattern is to use wildcards instead of direct equal matching for comparison .
SQL Sentence selection name In letters "G" All the customers who started :
SELECT * FROM Websites WHERE name LIKE 'G%';Execute output result :

边栏推荐
- 喜讯 | 祝贺Apache Linkis(incubating) 社区新增5位Committer
- How did the thief unlock the password after the iPhone was stolen? After reading the long knowledge
- How do I take a screenshot of the iPad? 7 ways to take quick screenshots of iPad
- A few simple ways for programmers to exercise their waist
- 多测师拱墅校区肖sir_jenkins中搭建出现页面报错
- Largeur d'abord traversée basée sur la matrice de contiguïté
- Blazor University (33)表单 —— EditContext、FieldIdentifiers
- Which securities company should I choose to open an account online? Is it safe to open an account online?
- 如何在 ggplot2 中向绘图中添加表格
- What is the sudden power failure of iPhone and how to solve it?
猜你喜欢

财富自由技能:把自己产品化

Blazor University (33) form - editcontext, fieldidentifiers

应届毕业生谈毕业的故事

One year's work

Breadth first traversal based on adjacency matrix

@Query difficult and miscellaneous diseases

IPhone 13 screen stuck black, unable to shut down? How to solve

基於鄰接矩陣的廣度優先遍曆

df报错Stale file handle

Breadth first traversal based on adjacency table
随机推荐
A few simple ways for programmers to exercise their waist
组件与路由
WPF window centering & change trigger mechanism
Depth first traversal based on adjacency table
MySQL must master 4 languages!
2022-06-25:给定一个正数n, 表示有0~n-1号任务, 给定一个长度为n的数组time,time[i]表示i号任务做完的时间, 给定一个二维数组matrix, matrix[j] = {a,
Markov decision process (MDP): gambler problem
Wechat launched a web version transmission assistant. Is it really easy to use?
Which securities company is better and safer to open a mobile stock account?
限制输入字符长度length英文1个字符中文2个字符
短信插件哪个好用万能表单需要发短信着急测试
为 ServiceCollection 实现装饰器模式
Multi surveyor Gongshu campus Xiao sir_ Page error in Jenkins
程序员的八年工资变动,令网友羡慕不已:你一个月顶我一年工资
In depth good article: what is supernetting?
Snake game
【flask入门系列】flask处理请求和处理响应
golang--channal与select
How to open a stock account? Is it safe to open an account online?
NoSQL之Redis配置与优化