我有以下查询,并得到以下错误消息:
update `wp_posts` set `post_excerpt` = replace( `post_excerpt`, "[av_font_icon icon='ue82d' font='entypo-fontello' size='14px' position='left' color='' custom_class=''][/av_font_icon]", '') where instr( `post_excerpt`, "[av_font_icon icon='ue82d' font='entypo-fontello' size='14px' position='left' color='' custom_class=''][/av_font_icon]") > 0;#1064 -您的SQL语法有错误;请检查与您的MySQL服务器版本对应的手册,以获得在第1行[av_font_icon图标=‘ue82d’字体=‘entypo-fontello’size=‘14 at’位置=‘左’c‘的正确语法。
我试图在我的wordpress数据库中找到并删除它。有人知道是怎么回事吗?非常感谢
发布于 2015-09-15 22:29:53
为什么不使用“PHP中的数据库搜索和替换脚本”呢?您所要做的就是将其放在根文件夹中并在浏览器中运行。https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
这就是我所用的,从来没有遇到过问题。只是要确保备份以防万一。
运行对短代码的搜索,并将其替换为空字段。
发布于 2015-09-15 17:35:48
应该使用''转义正在匹配的字符串中的单引号。
https://stackoverflow.com/questions/32592208
复制相似问题