gpt4 book ai didi

php - SQL 替换不适用于 phpMyAdmin?

转载 作者:行者123 更新时间:2023-11-28 23:32:56 25 4
gpt4 key购买 nike

我想替换我的 Wordpress 数据库中的 url,但 phpMyAdmin 不会执行我的 sql 代码

UPDATE wp_posts 
SET post_content = replace (post_content, 'http://www.domain.de' , 'http://localhost/wordpress');

UPDATE wp_postmeta
SET meta_value = replace (meta_value, 'http://www.domain.de' , 'http://localhost/wordpress');

我得到的是

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1

我检查了 SQl 语法,但对我来说似乎是正确的,会不会是 phpMyAdmin 的问题? (我运行的是4.5.1)

最佳答案

作为社区 wiki 发布。

如评论中所述:

 is also ZERO WIDTH NO-BREAK SPACE, so it would be invisible. – Rick James

引用:

"The name BYTE ORDER MARK is an alias for the original character name ZERO WIDTH NO-BREAK SPACE (ZWNBSP). With the introduction of U+2060 WORD JOINER, there's no longer a need to ever use U+FEFF for its ZWNSP effect, so from that point on, and with the availability of a formal alias, the name ZERO WIDTH NO-BREAK SPACE is no longer helpful, and we will use the alias here."

关于php - SQL 替换不适用于 phpMyAdmin?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36872142/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com