Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
MySQL で Replace 関数を使用してテキストの文字列を置き換える方法は理解していますが、このようなことを試みると 0 レコードが更新されます。私は何が欠けていますか?
UPDATE `pages_description` SET `pages_body` = REPLACE(`pages_body`, "pages.php?pID=16&CDpath=4", "pages.php?pID=188&CDpath=0_4")
アンパサンドでした!OMG&エンティティを使用する必要がありました。 pages.php?pID=16&CDpath=4 また、(将来の参考のために) 区切り文字を PhpMyAdmin で使用されていない文字に変更してそのまま使用する必要があることも指摘したいと思います。セミコロンではなくコロンに変更しました。
&
pages.php?pID=16&CDpath=4