当前位置:网站首页>大约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
边栏推荐
- 总结出现2xx、3xx、4xx、5xx状态码的原因
- Chap2 steps into the palace of R language
- 阿里云有奖体验:用PolarDB-X搭建一个高可用系统
- Zhang Lijun: la pénétration de l’incertitude dépend de quatre « invariants»
- Parker驱动器维修COMPAX控制器维修CPX0200H
- MySQL deep paging optimization with tens of millions of data, and online failure is rejected!
- Efficiency difference between row first and column first traversal of mat data types in opencv
- PIP install beatifulsoup4 installation failed
- 第05章_存储引擎
- EBS Oracle 11g 克隆步骤(单节点)
猜你喜欢

uni-app 蓝牙通信

MySQL deep paging optimization with tens of millions of data, and online failure is rejected!

Alibaba cloud award winning experience: build a highly available system with polardb-x

Parker驱动器维修COMPAX控制器维修CPX0200H

PIP install beatifulsoup4 installation failed

深信服X计划-网络协议基础 DNS

Explain various hot issues of Technology (SLB, redis, mysql, Kafka, Clickhouse) in detail from the architecture

Defect detection - Halcon surface scratch detection

Incentive mechanism of Ethereum eth

MQ----activeMq
随机推荐
使用Aspect制作全局异常处理类
Scenario interview: ten questions and ten answers about distributed locks
xlrd常见操作
Exercise 1 simple training of R language drawing
Display DIN 4102-1 Class B1 fire test requirements
Clion configures Visual Studio (MSVC) and JOM multi-core compilation
Establishment of terminal security capability verification environment and penetration test records
基于 Ingress Controller 在集群外访问 Zadig 自测环境(最佳实践)
Defect detection - Halcon surface scratch detection
Golang(1)|从环境准备到快速上手
selenium 查找b或p标签的内容
Simple interest mode - lazy type
Xlrd common operations
What are the requirements of UL 2043 test for drive housing in the United States?
kingbaseES V8R3数据安全案例之---审计记录清除案例
Pytoch practice -- MNIST dataset handwritten digit recognition
华为游戏多媒体服务调用屏蔽指定玩家语音方法,返回错误码3010
MQ----activeMq
ArcGIS栅格重采样方法介绍
js常用方法封装