0
我在wordpress中有很多帖子。在那篇文章中,我有像dev.dev.example.com這樣的鏈接,現在我想用它代替dev.example.com。如何在mySql數據庫中替換批量href鏈接
我使用下面的查詢
UPDATE `dbname`.`wp_posts` SET `post_content`= replace(cast(post_content as varchar(max)), '%dev.dev.example.com%', '') WHERE CONVERT(`post_content` USING utf8) LIKE '%dev.example.com%'
感謝您的幫助,我使用[this](https://wordpress.org/plugins/find-replace/)插件爲它,它適用於我:) – 2015-02-06 03:42:37
該指南也提到了插件。這就是爲什麼我提到,遵循指南是很好的:) – Selay 2015-02-06 03:44:07