【问题标题】:string values need to be replaced in quotes in oracle字符串值需要在oracle中用引号替换
【发布时间】:2020-11-06 03:31:45
【问题描述】:

我有一个列买家,有两个值为 (OTHER,ANGIE WAN),需要在引号中作为 'OTHER','ANGIE WAN'。

我怎样才能做到这一点?

【问题讨论】:

    标签: string single-quotes


    【解决方案1】:

    也许用','替换逗号

    update my_table set buyer '''' || replace(buyer, ',', ''',''') || '''' 
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-23
      • 2019-11-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-07
      • 1970-01-01
      相关资源
      最近更新 更多