当前位置:网站首页>The writing method of like% variable% in Oracle SQL
The writing method of like% variable% in Oracle SQL
2022-07-18 13:46:00 【Smile and refuel】
orcale Under the premise of database ,mybatics frame , Fuzzy query splicing is required % The scenario is as follows
select * from user where username like '%username%'
That requires fuzzy query of the passed variables , There are two ways to write
1. call mapper Interface , Use variables % Splicing
User user= usermapper.queryUserByUserName("%+userName+%");
2. stay sql In dealing with , Use concat Function
//orcale Medium concat Function can only splice two variables
select * from user where username like CONCAT(CONCAT('%',#{
channelType}),'%')
边栏推荐
- Solve the error of getting body content in filter, getreader() has already been called for this request
- QImage 图像格式小结
- 312312dd
- leetcode445. 两数相加 II
- Research progress of transfer learning in medical image classification
- constrained graphic layout generation via latent optimization
- DSP-Core类库的.NET版本降级
- QA robot section 1 - Introduction
- [TinyML]APQ:Joint Search for Network Architecture, Pruning and Quantization Policy
- Qimage image format summary
猜你喜欢

Hcip the next day

JESD204B调试笔记(实用版)

Sword finger offer 04 Search in two-dimensional array

Sword finger offer 50 The first character that appears only once

Research progress of transfer learning in medical image classification

Halcon 3D create_ pose

Sword finger offer 10- ii Frog jumping on steps

MySQL 窗函数 流动平均数 running average

Matlab科研绘图颜色补充(特别篇6)—336种法国传统颜色

Sword finger offer 48 The longest substring without repeated characters
随机推荐
DSP core class library Net version degradation
leetcode445. 两数相加 II
micro、M3O微服务系列(二)
Solve the error of getting body content in filter, getreader() has already been called for this request
用例解读:openinstall多场景应用分析
JESD204B调试笔记(实用版)
Sword finger offer 63 Maximum profit of stock
类型的缩小
Advanced principle of MySQL: MySQL execution process and order
Single cell paper record (Part15) -- integrated analysis of multimodal single cell data
Flutter ListView controller.animateTo 无效
【目标跟踪】基于背景消减的图像帧间差分法目标检测及matlab仿真
ORA-01033
[step on the pit] resurrect Pico go
QTcpServer多线程实现
[TinyML]APQ:Joint Search for Network Architecture, Pruning and Quantization Policy
Modèles de boîtes, flux de documents, positionnement, mise en page et conception réactive
盒子模型、文檔流、定比特、布局和響應式設計
猜数字大小II[动态规划解决什么问题?]
Status of the process