场景:购物车
问题:mysql数据库用了order做表名
报错:
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 'order (username, goodsId, number,state) values ('admin', 1, 1, 1)' at line 1
困扰了我一天,菜鸟,后来反应过来,改了表名后成功了!