请可能有人帮助我了解为什么下面的SQL不起作用:查找和替换使用phpMyAdmin
UPDATE `v2rns_content_new`
SET `images`= REPLACE(`images`, 'images\/news_images', 'images\/news_images\/legacy');
我试图查找和替换以下字符串的加粗部分(有多个记录中数据库具有类似字符串但是文件名例如example.png是不同的):
{ “image_intro”: “图像\/news_images \ /example.png","float_intro":"","image_intro_alt”: “”,“image_intro_caption”:“”,“image_fulltext”:“”,“float_fulltext”:“”,“image_fulltext_alt”:“”,“image_fulltext_caption”:“”}
请注意:我昨天问一个相关的问题(这将提供一些背景),但我觉得这个问题最好是单独询问 - Updating all rows within a single column using phpMyAdmin
我不认为你需要逃避'/'。 – GolezTrol