SQL查询的语法检查

时间:2011-11-02 11:18:40

标签: mysql replace set

我不是专家。 PhpMyAdmin一直告诉我以下代码的语法错误。你能帮助我吗?谢谢!

UPDATE jos_content SET fulltext = REPLACE(fulltext,'<img alt="chiocciola" src="images/stories/chiocciola.gif" width="9" height="8" />','@')

1 个答案:

答案 0 :(得分:1)

FULLTEXT是MySQL reserved word,应该引用反引号“'' -

UPDATE jos_content SET `fulltext` = REPLACE(`fulltext`, '<img alt="chiocciola" src="images/stories/chiocciola.gif" width="9" height="8" />', '@')