错误:Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp;的解决
2018-01-17 18:07
537 查看
日期查询时遇到这个问题
因MySQL的时间类型datetime范围是
解决方案
在jdbcurl中添加如下字符串
&zeroDateTimeBehavior=convertToNull
因MySQL的时间类型datetime范围是
1000-01-01 00:00:00到
9999-12-31 23:59:59,mysql中
0000-00-00 00:00:00并不是一个有效的时间格式,所以报错。
解决方案
在jdbcurl中添加如下字符串
&zeroDateTimeBehavior=convertToNull
相关文章推荐
- 错误: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 as java.sql.Timestamp错误解决
- Bug3: Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp 时间戳错误 时间戳不能被体现
- 错误:Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp;的解决
- 错误: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 的错误
- mysql解决Value ‘0000-00-00 00:00:00’ can not be represented as java.sql.Timestamp
- 错误:Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp;的解决
- 错误:Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp;的解决
- 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 as java.sql.Timestamp
- 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
- 开发问题:error: Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp
- Cash Loan(二):SQLException: 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
- 关于SQLException: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 as java.sql.Timestamp
- 提示Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp;
- Value '0000-00-00' can not be represented as java.sql.Timestamp错误