check the manual that corresponds to your MySQL server version for the right syntax to use near……

check the manual that corresponds to your MySQL server version for the right syntax to use near ‘order(id,uid,money,status,‘time’,aid) values (‘20201204180426318’,12,24.00,‘1’,’’ at line 1 Query: insert into order(id,uid,money,status,‘time’,aid) values (?,?,?,?,?,?) Parameters: [20201204180426318, 12, 24.00, 1, Fri Dec 04 18:04:26 CST 2020, 4533]

在跟着网络上的教程做一个商城小项目的时候,发现加入订单的时候报了这个错误,在网上搜索了一下 发现是表名用了mysql的关键字,把order表名改了之后就好了。
以后切记关键字。
参考:
https://blog.csdn.net/hello__word__/article/details/76287062?ops_request_misc=%25257B%252522request%25255Fid%252522%25253A%252522160707637719724838582252%252522%25252C%252522scm%252522%25253A%25252220140713.130102334…%252522%25257D&request_id=160707637719724838582252&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2allbaidu_landing_v2~default-2-76287062.nonecase&utm_term=check%20the%20manual%20that%20corresponds%20to%20your%20MySQL%20server%20version%20for%20the%20right%20syntax%20to%20use

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值