1.[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' where order_id = 1' at line 3
笔者在学习mybatis时,将表明设置成order关键词,发现报了以上错误
2.解决方法
use bjpower;
select
order_id, order_no, sale_datetime, totalAmount, totalQuantity
from `order`
where order_id = 1;
将关键词用反顿号括起来即可!
3.展示
原文地址:https://blog.csdn.net/DrLai/article/details/121469212
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。