解决bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符
时间:2020-07-06 14:48:19
收藏:0
阅读:380
1. 报错:
### Cause: java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符
; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符
2.出错 原因:
1) sql在数据库执行都是OK的。
真正的原因是: 在mybatis 中sql结尾处多了一个" ; " 去掉就可以了。
2) mybatis ,我查出的数据在resultMap中没有对应的映射字段来匹配,查到的结果无法全部填充到对象属性才报错的。
转自:http://www.voidcn.com/article/p-tafwklah-bqb.html
原文:https://www.cnblogs.com/yixiu868/p/13254364.html
评论(0)