0
点赞
收藏
分享

微信扫一扫

解决:Cause: java.sql.SQLException: Incorrect integer value: ‘xxx‘ for column ‘xxx‘ at row 1

杰森wang 2022-04-17 阅读 157
spring

解决:

### Error updating database.  Cause: java.sql.SQLException: Incorrect integer value: 'guanyu@163.com' for column 'age' at row 1
### The error may exist in com/wudi/dao/StudentDao.xml
### The error may involve com.wudi.dao.StudentDao.insertStudent-Inline
### The error occurred while setting parameters
### SQL: insert into student values(?,?,?,?);
### Cause: java.sql.SQLException: Incorrect integer value: 'guanyu@163.com' for column 'age' at row 1

这个问题我出错了,解决了好久:

我的问题出现的是在字段问题的匹配上出现了一些不对称行为-->

首先要保证你的字段和你的数据库字段保持一致

 id-->对应-->id

 name-->对应-->name

 email-->对应-->email

 age-->对应-->age

查找的方法一定一定!!!要和你的数据库对应!!!

举报

相关推荐

0 条评论