【问题标题】:how to remove backslash from a string using redshift?如何使用redshift从字符串中删除反斜杠?
【发布时间】:2017-10-23 07:43:02
【问题描述】:

如何去除 redshift 中的反斜杠?

例如: 1\234

我只想要: 1 234

我尝试了 regexp_replace 函数,但没有成功。

【问题讨论】:

    标签: amazon-redshift


    【解决方案1】:

    REPLACE(string1, old_chars, new_chars)

    select replace('1\\2345','\\',' ')

    http://docs.aws.amazon.com/redshift/latest/dg/r_REPLACE.html

    【讨论】:

      猜你喜欢
      • 2015-03-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-14
      • 1970-01-01
      相关资源
      最近更新 更多