当前位置:网站首页>大约SQL现场“这包括”与“包括在”字符串的写法
大约SQL现场“这包括”与“包括在”字符串的写法
2022-07-05 21:40:00 【全栈程序员站长】
大家好,又见面了,我是全栈君,今天给大家准备了Idea注册码。
1、字段查找表值“这包括”方法一字符串的所有记录
如果表中有一name场,查询name这包括“乔 – 史密斯”所有记录。能够写sql:
Stirng strsql=”SELECT * FROM 表名 WHERE name LIKE ’%”+”张三”+”%’”;
2、查询某字段值“包括于”某个字符串的全部记录的方法
假设查询表中name字段包括于字符串“张三是个好学生”的全部记录,能够这样写sql:
String strsql=”SELECT * FROM 表名 WHERE INSTR(’张三是个好学生’,name)>0″;
就可以查询。记录中的name字段值中包含:张、三、是、个、好、学、生、张三、……所有记录。
注意:以上sql字符串请仔细阅读半宽全角符号。
版权声明:本文博客原创文章,博客,未经同意,不得转载。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/117578.html原文链接:https://javaforall.cn
边栏推荐
- Access Zadig self-test environment outside the cluster based on ingress controller (best practice)
- 初级软件测试必问面试题
- kingbaseES V8R3数据安全案例之---审计记录清除案例
- selenium 查找b或p标签的内容
- 【日常训练--腾讯精选50】89. 格雷编码(看题解才会的)
- SQL knowledge leak detection
- 递归查询多级菜单数据
- Robot framework setting variables
- Selenium finds the contents of B or P Tags
- Selenium's method of getting attribute values in DOM
猜你喜欢
Some common processing problems of structural equation model Amos software
Pytoch practice -- MNIST dataset handwritten digit recognition
张丽俊:穿透不确定性要靠四个“不变”
MMAP学习
Access Zadig self-test environment outside the cluster based on ingress controller (best practice)
2.2.5 basic sentences of R language drawing
Parker driver maintenance COMPAX controller maintenance cpx0200h
Realize the function of verifying whether the user has completed login when browsing the page
Explain various hot issues of Technology (SLB, redis, mysql, Kafka, Clickhouse) in detail from the architecture
MMAP
随机推荐
MySQL deep paging optimization with tens of millions of data, and online failure is rejected!
校招期间 准备面试算法岗位 该怎么做?
MySQL InnoDB Architecture Principle
基于 Ingress Controller 在集群外访问 Zadig 自测环境(最佳实践)
Haas506 2.0 development tutorial - Alibaba cloud OTA - PAC firmware upgrade (only supports versions above 2.2)
854. 相似度为 K 的字符串 BFS
Oracle检查点队列–实例崩溃恢复原理剖析
selenium 获取dom内验证码图片
Gcc9.5 offline installation
怎么利用Tensorflow2进行猫狗分类识别
Selenium finds the contents of B or P Tags
EBS Oracle 11g 克隆步骤(单节点)
MQ----activeMq
Wood board ISO 5660-1 heat release rate mapping test
Get JS of the previous day (timestamp conversion)
[daily training -- Tencent select 50] 89 Gray code (only after seeing the solution of the problem)
Clickhouse copy paste multi line SQL statement error
張麗俊:穿透不確定性要靠四個“不變”
力扣------经营摩天轮的最大利润
MATLAB | App Designer·我用MATLAB制作了一款LATEX公式实时编辑器