mysql 数据库字段为datetime类型时默认值为:0000-00-00 00:00:00 查询时异常 java.sql.SQLException:Value '0000-00-00' can not be represented as java.sq
2010-09-29 22:33
1061 查看
mysql
数据库字段为datetime类型时默认值为:0000-00-00 00:00:00
查询时异常
java.sql.SQLException:Value '0000-00-00' can not be represented as java.sql.Date
解决方法在url后添加 &zeroDateTimeBehavior=convertToNull
datasource.url=jdbc:mysql://localhost:3306/pe?useUnicode=true&characterEncoding=gbk&zeroDateTimeBehavior=convertToNull
数据库字段为datetime类型时默认值为:0000-00-00 00:00:00
查询时异常
java.sql.SQLException:Value '0000-00-00' can not be represented as java.sql.Date
解决方法在url后添加 &zeroDateTimeBehavior=convertToNull
datasource.url=jdbc:mysql://localhost:3306/pe?useUnicode=true&characterEncoding=gbk&zeroDateTimeBehavior=convertToNull
相关文章推荐
- MySQL异常: Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp
- java.sql.SQLException:Value '0000-00-00' can not be represented as java.sql.Date
- 问题解决:java.sql.SQLException:Value '0000-00-00' can not be represented as java.sql.Date
- java.sql.SQLException: Value '0000-00-00' can not be represented as java.sql.Date 解决方法
- 问题解决:java.sql.SQLException:Value '0000-00-00' can not be represented as java.sql.Date
- 程序bug调试以及java.sql.SQLException:Value '0000-00-00' can not be represented as java.sql.Date问题
- ibatis java.sql.SQLException: Value '0000-00-00 00:00:00' can not be represented as java.sql.Timest
- java.sql.SQLException:Value '0000-00-00' can not be represented as java.sql.Date
- MySQL 关于 Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp 的错误
- java.sql.SQLException:Value '0000-00-00' can not be represented as java.sql.Date
- java.sql.SQLException:Value '0000-00-00' can not be represented as java.sql.Date
- 问题解决:java.sql.SQLException:Value '0000-00-00' can not be represented as java.sql.Date
- Caused by: java.sql.SQLException: Value '0000-00-00 00:00:00' can not be represented as java.sql.Tim
- [DEBUG] “java.sql.SQLException: Value '0000-00-00' can not be represented as java.sql.Timestamp”
- 问题解决:java.sql.SQLException:Value '0000-00-00' can not be represented as java.sql.Date
- 问题解决:java.sql.SQLException:Value '0000-00-00' can not be represented as java.sql.Date
- 问题解决:java.sql.SQLException:Value '0000-00-00' can not be represented as java.sql.Date
- MySQL关于Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp
- 插入Mysql异常之Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp
- 解决 java.sql.SQLException: Value '0000-00-00 00:00:00' can not be represented