当前位置:网站首页>Oracle intercepts special characters
Oracle intercepts special characters
2022-04-23 21:25:00 【Plant a sweet smell】
Oracle Character interception
1.substr(varchar2,start_index,sub_length)
#### explain :
- varchar2 : String to process
- start_index : Intercept starting position
- sub_length : Interception length
2.instr(varchar2,char,index,n)
explain :
- varchar2 : String to process
- char : Characters to search
- index : char Character No index position ,index<0, The sign starts on the right
3. Intercept the first part of a special string
select substr('Ajjjjjsss-36kk699-KL3369',0,(instr('Ajjjjjsss-36kk699-KL3369', '-',1, 1)-1)) from dual;
4. Intercept the second half of the string
select substr('AFGLasa-22589assa-KL33dssdd339',instr('AFGLasa-22589assa-KL33dssdd339', '-',2, 2) + 1,length('AFGLasa-22589assa-KL33dssdd339')) from dual;
5. Intercept the middle part of the string
select substr('kjjshgdhbdf-236688sss-sssasdsd89555',instr('kjjshgdhbdf-236688sss-sssasdsd89555', '-',-1, 2) + 1,
instr('kjjshgdhbdf-236688sss-sssasdsd89555', '-', -1, 1) -(instr('kjjshgdhbdf-236688sss-sssasdsd89555', '-', -1, 2) + 1)) from dual;
版权声明
本文为[Plant a sweet smell]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/110/202204200619557042.html
边栏推荐
- 2.整理华子面经--2
- Pytorch selects the first k maximum (minimum) values and their indexes in the data
- Opencv application -- jigsaw puzzle
- IIS cannot load * woff,*. woff2,*. Solution of SVG file
- airbase 初步分析
- ros功能包内自定义消息引用失败
- CUDA, NVIDIA driver, cudnn download address and version correspondence
- Recommended usage scenarios and production tools for common 60 types of charts
- Chrome 94 引入具有争议的 Idle Detection API,苹果和Mozilla反对
- Norm normalization in tensorflow and pytorch of records
猜你喜欢
Based on jsplumb JS to achieve multi list one to many connection effect
Deno 1.13.2 发布
JS merge duplicate data in array object
[leetcode sword finger offer 10 - II. Frog jumping steps (simple)]
Deep analysis of C language function
This paper solves the cross domain problem of browser
airbase 初步分析
Minecraft 1.12.2 module development (43) custom shield
Yolov5 NMS source code understanding
MySQL basic collection
随机推荐
Tensorflow and pytorch middle note feature map size adjustment to achieve up sampling
Pytorch selects the first k maximum (minimum) values and their indexes in the data
Rust更适合经验较少的程序员?
Automatic heap dump using MBean
Display, move, rotate
Another data analysis artifact: Polaris is really powerful
Deep understanding of modern mobile GPU (continuously updating)
[leetcode refers to offer 25. Merge two sorted linked lists (simple)]
Preliminary analysis of Airbase
Alibaba cloud responded to the disclosure of user registration information
Addition, deletion, modification and query of advanced MySQL data (DML)
IOT design and development
Keywords static, extern + global and local variables
Send email to laravel
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:app:stripDe
Introduce structured concurrency and release swift 5.5!
Pikachuxss how to get cookie shooting range, always fail to return to the home page
Common problems in deploying projects with laravel and composer for PHP
引入结构化并发,Swift 5.5 发布!
3-5 obtaining cookies through XSS and the use of XSS background management system