SQL REPLACE()字符串替换函数

语法
REPLACE ( string_expression , string_pattern , string_replacement )
意思是,在字串 string_expression中,当 string_pattern出现時,将其以 string_replacement 替代。

regexp_replace(srting,a,b),将string字符串中的a部分替换成b
REGEXP_REPLACE(source_string, pattern[, replace_string [, position[,occurrence, [match_parameter]]]])

posted @ 2021-05-24 11:11  立木读数  阅读(502)  评论(0)    收藏  举报