MySQL search and replace syntax error

后端 未结 2 1152
渐次进展
渐次进展 2021-01-27 17:45

I have the following query and get the below error message:

update `wp_posts` set  `post_excerpt` = replace( `post_excerpt`, \"[av_font_icon icon=\'ue82d\' font=         


        
相关标签:
2条回答
  • 2021-01-27 17:56

    You should escape the single quotes in the string you are matching, using ''

    0 讨论(0)
  • 2021-01-27 18:13

    Why don't you use the "Database Search And Replace Script In PHP"? All you have to do is place it in the root folder and run it in your browser. https://interconnectit.com/products/search-and-replace-for-wordpress-databases/

    That's what I use and have never had a problem. Just make sure to make a back up just in case.

    Run a search for the short code and replace it with an empty field.

    0 讨论(0)
提交回复
热议问题