Insert into DonutOrder (Date, Special Handling Notes)
Values ("20140506", "Please Include Plates and Napkins");
我不断收到这样的回复 错误 SQL查询:
Insert into DonutOrder (Date, Special Handling Notes);
MySQL 说:文档
#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 'Handling Notes)' at line 1
最佳答案
嗯,你的标识符(列名)有空格,所以你应该用反引号转义它:
insert into `DonutOrder` (`Date`, `Special Handling Notes`) Values ("20140506", "Please Include Plates and Napkins");
关于mysql - 有人可以告诉我这段sql代码做错了什么吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33379132/