老师,我的一直报sql语句错误是咋回事啊,

来源:5-2 Mybatis注解使用

GUAIWU

2020-07-05

@Select(“selcet * from mall_category where id =#{id}”)
然后就这个错

org.springframework.jdbc.BadSqlGrammarException: ### Error querying database. Cause: java.sql.SQLSyntaxErrorException: 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 ‘selcet * from mall_category where id =100001’ at line 1

检查了好多遍,跟你的一模一样啊

写回答

1回答

廖师兄助理

2020-07-07

把你写的sql放到操作数据库的工具上自己执行一下看看啊

0
0

实战支付+电商双系统 玩转Java技术栈

花一份课的价,收获:双系统实战+坐拥20K+粉的师兄指导,值~

2047 学习 · 1048 问题

查看课程