当前位置:网站首页>Oracle/PLSQL: Replace Function
Oracle/PLSQL: Replace Function
2022-06-27 01:45: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' |
边栏推荐
猜你喜欢

Recursion will make strtok more attractive

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

Pointer compression for JVM

The listing of Fuyuan pharmaceutical is imminent: the net amount raised will reach 1.6 billion yuan, and hubaifan is the actual controller

Amazon elasticache quickly builds a cache service cluster, which is fast

Two days of beautiful butterfly animation

C语言--职工信息管理系统设计
![[graduation season] role conversion](/img/4e/aa763455da974d9576a31568fc6625.jpg)
[graduation season] role conversion

Topolvm: kubernetes local persistence scheme based on LVM, capacity aware, dynamically create PV, and easily use local disk

接口测试框架实战(一) | Requests 与接口请求构造
随机推荐
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?
hibernate 根据方言生成sql
学习DiscoDiffusion的最基础操作
为什么先划分训练集和测试集后归一化?
Meituan: data management and pit avoidance strategy summarized after stepping on Thunder for several years
SQLite Reader 插件测试SQLite语法
snakemake 使用的注意事项
在 IDEA 里看个书很过分嘛!
Kept to implement redis autofailover (redisha) 15
Structure the fifth operation of the actual camp module
Hibernate generates SQL based on Dialect
Kept to implement redis autofailover (redisha) 16
Why divide the training set and the test set before normalization?
Kept to implement redis autofailover (redisha) 13
memcached基础11
The listing of Fuyuan pharmaceutical is imminent: the net amount raised will reach 1.6 billion yuan, and hubaifan is the actual controller
Oracle/PLSQL: Upper Function
Memcached foundation 10
Some exception handling for idea plug-in development
get_ Usage Summary of sequencer