Oracle函数之Replace()
Replace() 字符替换函数.
语法:
REPLACE(char, search_string
[, replacement_string ]
)
char : 等待替换的字符串
search_string : 搜索需要替换的字符串
replacement_string : 替换字符串
如果replacement_string缺省或者为null,那么所有char中出现的search_string 都将被移除
如果search_string为null,那么结果就是char
SELECT REPLACE('JACK and JUE','J','BL') "Changes"
FROM DUAL;
Changes
--------------
BLACK and BLUE
相关推荐
lynjay 2020-06-14
满地星辰 2020-09-16
shqhope 2020-06-23
WebVincent 2020-06-16
ajaxtony 2020-06-11
有梦就能实现 2020-06-05
zhendeshifeng 2020-05-27
gcgl000hugang 2020-02-10
Yasin 2020-05-05
Darklovy 2020-04-16
hellobabygogo 2020-03-06
程松 2020-02-23
wbingyang 2020-02-16
文山羊 2020-02-14
zehuawong 2020-02-11
jiahaohappy 2020-01-10
ELEMENTS爱乐冬雨 2019-12-29