ed2*_*d22 5 mysql mysql-error-1064
这个查询:
UPDATE jos_content SET fulltext='\r\n<br /> \" some other text' WHERE id=3
Run Code Online (Sandbox Code Playgroud)
得到:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'fulltext='\r\n<br /> \" some other text' WHERE id=3' at line 1
任何人都知道为什么?谢谢你.
Nic*_*ssu 11
全文是保留字.
http://dev.mysql.com/doc/refman/5.1/en/reserved-words.html
重命名你的领域或把它放在反引号'''(alt + 96)
像这样:
UPDATE jos_content SET `fulltext`='\r\n<br /> \" some other text' WHERE id=3
Run Code Online (Sandbox Code Playgroud)