gpt4 book ai didi

sql - 将其中带单引号的字符串替换为另一个字符串 SQL

转载 作者:行者123 更新时间:2023-12-02 02:26:06 26 4
gpt4 key购买 nike

我在一列(称为列 c1)中有一个值,如下所示:

'there it is' is what she said

我想将其替换为:

'there it is plus two' is what she said

但是过得很艰难。

Using replace(c1
, ''there it is' is what she said'
, ''there it is plus two' is what she said')

给我“附近的语法不正确”。

最佳答案

在字符串 '' 中引用 ':

replace(c1
, '''there it is'' is what she said'
, '''there it is plus two'' is what she said')

关于sql - 将其中带单引号的字符串替换为另一个字符串 SQL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65634150/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com