老师,我的一直报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放到操作数据库的工具上自己执行一下看看啊
00
相似问题