Insert into DonutOrder (Date, Special Handling Notes)
Values ("20140506", "Please Include Plates and Napkins");
我一直得到这个回应 错误 SQL查询:
Insert into DonutOrder (Date, Special Handling Notes);
MySQL说:文档
#
1064 - 您的SQL语法出错;检查与MySQL服务器版本对应的手册,以获得正确的语法 附近处理备注)'在第1行
答案 0 :(得分:1)
好吧,你的标识符(列名)有空格,所以你应该用反引号来转义它:
insert into `DonutOrder` (`Date`, `Special Handling Notes`) Values ("20140506", "Please Include Plates and Napkins");