当前位置:网站首页>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 :

边栏推荐
- PyQt theme
- 数据库的授权
- Breadth first traversal based on adjacency table
- 2022-06-25: given a positive number n, it means that there are tasks 0~n-1. Given an array of length N, time[i] means the time when task I is completed. Given a two-dimensional array matrix, matrix[j]
- OpenAPI 3.0 specification - Food Guide
- 2022年挖财商学院证券开户安全嘛?
- df报错Stale file handle
- Which securities company is better and safer to open a mobile stock account?
- 程序员的八年工资变动,令网友羡慕不已:你一个月顶我一年工资
- Redis Lua沙盒绕过命令执行(CVE-2022-0543)
猜你喜欢

Eureka registration information configuration memo

Introduction to bloc: detailed explanation of cube

分享一些在内网操作的远程办公经验| 社区征文

Cow sequencing problem

Chapter I: essential information collection of penetration test

Cvpr2022 𞓜 future transformer with long-term action expectation

Agent challenge - "Olympic running"

How did the thief unlock the password after the iPhone was stolen? After reading the long knowledge

Pie chart metamorphosis record, the liver has 3000 words, collection is to learn!

Depth first traversal based on adjacency table
随机推荐
Eureka registration information configuration memo
Technology is to be studied
第一章:渗透测试的本质信息收集
In depth good article: what is supernetting?
基于 ovarian 数据集 进行生存分析
Here comes the official zero foundation introduction jetpack compose Chinese course!
Which securities company is better and safer to open a mobile stock account?
R语言 生存分析
二分查找
为 ServiceCollection 实现装饰器模式
音视频与CPU架构
# 云原生训练营毕业总结
解读Oracle
Magnifier case
喜讯 | 祝贺Apache Linkis(incubating) 社区新增5位Committer
.NET7之MiniAPI(特别篇) :Preview5优化了JWT验证(下)
df报错Stale file handle
[machine learning] case study of college entrance examination prediction based on multiple time series
golang--channal与select
MySQL必须掌握4种语言!