当前位置:网站首页>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' |
边栏推荐
- UVM中uvm_report_enabled的用法
- Topolvm: kubernetes local persistence scheme based on LVM, capacity aware, dynamically create PV, and easily use local disk
- 使用NetworkX对社交网络进行系统的分析:Facebook网络分析案例
- Custom class loader encrypts and decrypts classes
- Memcached foundation 10
- Binary tree OJ problem
- IIS 部署静态网站和 FTP 服务
- 图论知识及其应用初步调研
- 在连接数据库的时候遇到了点问题,请问怎么解决呀?
- Memcached foundation 3
猜你喜欢

1.44寸TFT-LCD显示屏取模教程

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

架构实战营模块五作业

Pointer compression for JVM

C语言--职工信息管理系统设计

Visual introduction to Matplotlib and plotnine

疫情期间居家办公的总结体会 |社区征文

IIS 部署静态网站和 FTP 服务

在连接数据库的时候遇到了点问题,请问怎么解决呀?
![Find the minimum value in the rotation sort array ii[classical Abstract dichotomy + how to break the game left, middle and right are equal]](/img/75/05d5765588dfde971167fbc72e2aa8.png)
Find the minimum value in the rotation sort array ii[classical Abstract dichotomy + how to break the game left, middle and right are equal]
随机推荐
Bootstrapblazor + FreeSQL actual combat chart usage (2)
Oracle/PLSQL: Lower Function
Visual introduction to Matplotlib and plotnine
对象的访问机制及其他
你的case真的pass了吗?
Memcached Foundation
Learn the most basic operation of discodiffusion
snakemake 使用的注意事项
Binary tree OJ problem
接口测试框架实战(一) | Requests 与接口请求构造
Object access mechanism and others
Simply learn the entry-level concepts of googlecolab
Meituan: data management and pit avoidance strategy summarized after stepping on Thunder for several years
Memcached foundation 4
Two days of beautiful butterfly animation
Why divide the training set and the test set before normalization?
NOKOV动作捕捉系统使多场协同无人机自主建造成为可能
Summary of config mechanism and methods in UVM (2)
Oracle/PLSQL: Rpad Function
为什么传递SPIF_SENDCHANGE标志SystemParametersInfo会挂起?