在我的WP数据库中,我希望找到所有出现的www.example.com并删除.htm扩展名,但只有在特定的www.example.com
我正在尝试将www.example.com/page.htm的所有实例更改为www.example.com/page
基本上我想表演:
UPDATE wp_posts SET post_content = REPLACE(post_content, '.htm','') WHERE (string that has .htm also includes www.example.com);
可能的?
答案 0 :(得分:0)
WHERE post_content LIKE 'www.example.com%'