当前位置:网站首页>大约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
边栏推荐
- EBS Oracle 11g 克隆步骤(单节点)
- sql常用语法记录
- xlrd常见操作
- [daily training -- Tencent select 50] 89 Gray code (only after seeing the solution of the problem)
- postgres 建立连接并删除记录
- Two ways to realize video recording based on avfoundation
- Teach yourself to train pytorch model to Caffe (III)
- 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
- 场景化面试:关于分布式锁的十问十答
猜你喜欢

MySQL InnoDB Architecture Principle

资深电感厂家告诉你电感什么情况会有噪音电感噪音是比较常见的一种电感故障情况,如果使用的电感出现了噪音大家也不用着急,只需要准确查找分析出什么何原因,其实还是有具体的方法来解决的。作为一家拥有18年品牌

Wood board ISO 5660-1 heat release rate mapping test

Parker driver maintenance COMPAX controller maintenance cpx0200h

Kingbasees v8r3 cluster maintenance case -- online addition of standby database management node

Teach yourself to train pytorch model to Caffe (III)

MQ----activeMq

Cold violence -- another perspective of objective function setting

SQL knowledge leak detection

张丽俊:穿透不确定性要靠四个“不变”
随机推荐
Four components of logger
Some things make feelings nowhere to put
Cold violence -- another perspective of objective function setting
1.2 download and installation of the help software rstudio
Arcgis\qgis no plug-in loading (no offset) mapbox HD image map
SQL common syntax records
EasyExcel的读写操作
Selenium's method of getting attribute values in DOM
Incentive mechanism of Ethereum eth
postgres 建立连接并删除记录
Display DIN 4102-1 Class B1 fire test requirements
Clion configures Visual Studio (MSVC) and JOM multi-core compilation
Objects in the list, sorted by a field
Parker驱动器维修COMPAX控制器维修CPX0200H
The transformation based on vertx web sstore redis to realize the distributed session of vertx HTTP application
【日常训练--腾讯精选50】89. 格雷编码(看题解才会的)
Problems encountered in office--
Establishment of terminal security capability verification environment and penetration test records
GCC9.5离线安装
Summary of data analysis steps