当前位置:网站首页>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' |
边栏推荐
- BS-GX-016基于SSM实现教材管理系统
- 1.44 inch TFT-LCD display screen mold taking tutorial
- Amazon elasticache quickly builds a cache service cluster, which is fast
- Memcached foundation 9
- Modeling specifications: environment settings
- Topolvm: kubernetes local persistence scheme based on LVM, capacity aware, dynamically create PV, and easily use local disk
- XSS notes (Part 2)
- Memcached foundation 10
- Interface isolation principle
- Memcached Foundation
猜你喜欢

Online text digit recognition list summation tool

Daily question brushing record (V)

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

ThreadLocal详解

理想L9产品力分析:售价45.98万,采用四缸发动机,续航1315公里

Bs-gx-016 implementation of textbook management system based on SSM

架构实战营模块五作业

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?

图论知识及其应用初步调研

在连接数据库的时候遇到了点问题,请问怎么解决呀?
随机推荐
Kept to implement redis autofailover (redisha) 14
UVM中uvm_config_db在sequence中的使用
IIS deploy static web site and FTP service
Memcached foundation 4
get_ Usage Summary of sequencer
Binary tree OJ problem
Hibernate generates SQL based on Dialect
接口隔离原则
Topolvm: kubernetes local persistence scheme based on LVM, capacity aware, dynamically create PV, and easily use local disk
Nokov motion capture system makes it possible for multi field cooperative UAV to build independently
Oracle/PLSQL: To_Clob Function
memcached基础13
memcached基礎12
Kept to implement redis autofailover (redisha) 13
uvm中的config机制方法总结(一)
美团:踩雷好几年,才总结出的数据治理避坑攻略
memcached基础11
Memcached foundation 6
Continuous delivery blue ocean application
清华&智源 | CogView2:更快更好的文本图像生成模型