3,494
社区成员




regexp_replace的意义是找到于给定模式匹配的字符串并用其他的字符串来替代。
其原型是:regexp_replace(x,pattern[,replace_string[,start[,occurence[match_option]]]])
每个参数的意思分别是:
x 待匹配的函数
pattern 正则表达式元字符构成的匹配模式
replace_string 替换字符串
start 开始位置
occurence 匹配次数
match_option 匹配参数
select Createtime,regexp_replace(wm_concat(cnt),',','#') as cnt from tb
group by createtime;
select CreateDay,regexp_relpace(wm_concat(cnt),',','#') from tb;