I am trying to run a query in MariaDB 10.3 that will replace [google]"
with [google]
in SMF:
UPDATE smf_messages SET body = REPLACE(body, '[google]"', '[google]') WHERE ID_BOARD = 64
这个查询对我来说适用于普通文本,但是现在它给了我
#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 ''[google]")' at line 1
如果我理解正确,那么您正在寻找转义字符
这将在方括号前寻找一个单引号,您需要简单地在要转义的字符之前添加\