請可能有人幫助我瞭解爲什麼下面的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