mysql datetime查询异常
发布时间:2016-10-22 11:01:14
mysql datetime查询异常异常:Value 0000-00-00 00:00:00 can not be represented as java.sql.Timestamp (2011-05-25 11:38:40)描述:非空无默认值的Datetime类型字段, ...
mysql datetime查询异常
- 异常:Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp (2011-05-25 11:38:40)
- 描述:非空无默认值的Datetime类型字段,查询时程序报以下错误: Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp
- 解决方法:数据库连接串添加zeroDateTimeBehavior参数或者noDatetimeStringSync参数jdbc:mysql://host:port/xxx?...
原标题:mysql datetime查询异常
关键词:MYSQL
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。