标签: mysql
我需要从表~\NewFolder1\中的字段photo中删除new,但查询无法正常工作
~\NewFolder1\
photo
new
UPDATE `new` SET `photo`=REPLACE(`photo`,'~\New\','')
答案 0 :(得分:1)
你需要逃避' \'添加额外的' \'
UPDATE `new` SET `photo`=REPLACE(`photo`,'~\\NewFolder\\','')