当前位置:网站首页>Oracle/PLSQL: Replace Function
Oracle/PLSQL: Replace Function
2022-06-27 01:35:00 【yuanlnet】
In Oracle/PLSQL, the replace function replaces a sequence of characters in a string with another set of characters.
Syntax
The syntax for the replace function is:
replace( string1, string_to_replace, [ replacement_string ] )
string1 is the string to replace a sequence of characters with another set of characters.
string_to_replace is the string that will be searched for in string1.
replacement_string is optional. All occurrences of string_to_replace will be replaced with replacement_string in string1. If the replacement_string parameter is omitted, the replace function simply removes all occurrences of string_to_replace, and returns the resulting string.
Applies To
- Oracle 11g, Oracle 10g, Oracle 9i, Oracle 8i
For Example
replace('123123tech', '123'); | would return 'tech' |
replace('123tech123', '123'); | would return 'tech' |
replace('222tech', '2', '3'); | would return '333tech' |
replace('0000123', '0'); | would return '123' |
replace('0000123', '0', ' '); | would return ' 123' |
边栏推荐
- 在线文本数字识别列表求和工具
- Esp32 add multi directory custom component
- Memcached foundation 6
- Interface test framework practice (I) | requests and interface request construction
- 二叉树oj题目
- UVM in reporting classes_ report_ Get of server_ severity_ Count and get_ Server usage
- UVM中uvm_report_enabled的用法
- Object access mechanism and others
- Continuous delivery blue ocean application
- Hibernate generates SQL based on Dialect
猜你喜欢

使用NetworkX对社交网络进行系统的分析:Facebook网络分析案例

Binary tree OJ problem

Continuous delivery blue ocean application

持续交付-Blue Ocean 应用

Tsinghua & Zhiyuan | cogview2: faster and better text image generation model

XSS notes (Part 2)

IIS deploy static web site and FTP service

Arbre binaire OJ sujet

Interface test framework practice (I) | requests and interface request construction

1.44寸TFT-LCD显示屏取模教程
随机推荐
memcached基础9
Due to the invalidation of the prospectus of bori technology, CICC has stopped providing guidance to it and abandoned the listing on the Hong Kong stock exchange?
TopoLVM: 基于LVM的Kubernetes本地持久化方案,容量感知,动态创建PV,轻松使用本地磁盘
理想L9产品力分析:售价45.98万,采用四缸发动机,续航1315公里
memcached基础2
1.44 inch TFT-LCD display screen mold taking tutorial
memcached基础4
memcached基础6
Memcached foundation 10
接口隔离原则
Basic introduction to C program structure Preview
Reading a book in idea is too much!
“所有专业都在劝退”,对大学生最友好的竟然是它?
【系统分析师之路】第六章 复盘需求工程(案例论文)
递归是会更秀strtok
XSS notes (Part 2)
Kept to implement redis autofailover (redisha) 17
Count the logarithm of points that cannot reach each other in an undirected graph [classic adjacency table building +dfs Statistics - > query set optimization] [query set manual / write details]
IIS deploy static web site and FTP service
JVM 的指针压缩