我在列中有一个值(称为列 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')
给我“附近的语法不正确”。
答案 0 :(得分:3)
在字符串 '
中引用 ''
:
replace(c1
, '''there it is'' is what she said'
, '''there it is plus two'' is what she said')
答案 1 :(得分:2)
你需要在字符串中加双单引号:
replace(c1,
'''there it is'' is what she said'
'''there it is plus two'' is what she said'
)