当前位置:网站首页>模糊查询 占位符
模糊查询 占位符
2022-07-20 19:06:00 【Camellia——】
-- 带模糊条件的查询
-- 关键字:like
-- 使用 select 字段名称 from 表名 where 字段名 like '占位符号'
-- 占位符号:% 包含的字符(包含多个字符) _代表单个字符-- 需求:模糊查询学生表中姓马的学生姓名
SELECT
NAME
FROM
student
WHERE NAME LIKE '%马%' ;-- 需求:模糊查询学生表中姓名为两个字符的人第二个字符是化的学生姓名
SELECT
NAME
FROM
student
WHERE NAME LIKE '%_化%' ;-- 需求:模糊查询学生表中姓名为三个字符的人的学生姓名
SELECT
NAME
FROM
student
WHERE NAME LIKE '___' ;
边栏推荐
猜你喜欢
C#中缓存的使用
The relationship between cloud computing and digital transformation has finally been clarified
Reverse string - Intermediate recursion
Why do some managers always force their sense of existence? (have you met it?)
Starfish OS: create a new paradigm of the meta universe with reality as the link
一元多项式的乘法与加法运算
Comparison of five classic code readers
SAFe Day 2022 中国规模化敏捷大会将于11月5日召开
反转字符串——中间递归
CAD网页中实现嵌套打印
随机推荐
Easygbs platform setup tips: how to hide the platform web page from being accessed?
短视频带货源码, 文本上下滚动和图片闪烁
怎样才能让企业知识管理发挥出它的真正价值?
Dart:补充
All countries know the highest salary level of programmers, and the bottom is unexpected
C# 图像模板匹配并标注
在代码评审中用好这7招,很容易就能建立起你的反对同盟
一个非常好用的log4net日志记录库
视频融合云平台EasyCVR重启服务器后,级联离线如何解决?
LeetCode刷题--点滴记录018
Foreach loop statement in TP5 controller
Is it safe and reliable to open an account on the flush?
Redis(12)----Redis服务器
【无标题】
Codeforces Round #809 (Div. 2)(A~D2)
PHP 使用 PDO 连接数据库
Memory allocation method
Great surprise
莫大的惊喜
Codeforces Round #808 (Div. 2)(A~D)