我有查询问题,有人看到不好的东西?从SQLMySQL查询错误 - 保留字
INSERT INTO messages (subject, from, recipient, text, time)
VALUES
('Welcome in King of the States!','The Game','$username','Hello $username, THIS MESSAGE IS DISPLAYED IN ENGLISH AUTOMATICLY SORRY FOR THAT! this game is in baby stadium so if you will see any bugs, please report them to our help desc system','$time')
错误:
#1064 - 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 'from, recipient, text, time) VALUES ('Welcome in King of the States!','The Gam' at line 1
'FROM'是SQL的保留字。您可以使用反引号将其转义,或更改列名称。 – andrewsi
Ok -...这将是非常的编辑:DD我会尝试 –
确定它的工作..我改变了“从”到“发件人”和“为”到“收件人”谢谢你;) –