执行sql语句失败(包含order表)

错误信息:[42000][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 ‘order.,user., orderDetail.orderDetail_id,orderDetail.order_id,orderDetail.it’ at line 1
错误原因:mysql不能使用order作为表的名称
解决方法:把order的名称改为orders或者其它合法名称即可

猜你喜欢

转载自blog.csdn.net/u010286027/article/details/84844742