ssm框架向mysql数据库插入数据出现史无前列的错误 请问大佬如何解决----谢谢【加急】 5
ProjectTest.testRegisterPhonetestRegisterPhone(com.hp.bookstore.test.ProjectTest)org....
ProjectTest.testRegisterPhonetestRegisterPhone(com.hp.bookstore.test.ProjectTest)org.springframework.dao.DataIntegrityViolationException: ### Error updating database. Cause: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect date value: '0' for column 'user_data' at row 1### The error may involve com.hp.bookstore.mapper.BookUserMapper.register-Inline### The error occurred while setting parameters### SQL: insert into book_user(user_phone,user_password,user_key,user_data) values ( user_phone=?, user_password=?, user_key=?, user_data=? )### Cause: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect date value: '0' for column 'user_data' at row 1; SQL []; Data truncation: Incorrect date value: '0' for column 'user_data' at row 1; nested exception is com.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect date value: '0' for column 'user_data' at row 1
展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |