题解 | #评论替换和去除#

评论替换和去除

https://www.nowcoder.com/practice/0038f5db08a64ec2851f2e219a06a121

方法一:replace
select id,replace(comment,',','') comment
from comment_detail
where char_length(comment) > 3

方法二:正则
select id,regexp_replace(comment,',','') comment
from comment_detail
where char_length(comment) > 3

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务