解决ROR 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 'creat table study_record( id int(11) not null

之前一直用的好好的,突然就出现了这个错误:

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 'creat table study_record(

然后上网上寻找资料,说是没有在关键词词上面添加反引号,当初学习的时候觉得不加反引号省事还舒服,而且没有报错,就没有添加反引号。

解决办法:

解决ROR 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 'creat table study_record( id int(11) not null

在英文键盘输入环境下,按图示按钮输入反引号

上一篇:canvas探照灯效果


下一篇:Linux curl 命令详解