报错 java.sql.SQLException: Value '0000-00-00 00:00:00' can not be represented as java.sql.Tim

Posted 岑惜

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了报错 java.sql.SQLException: Value '0000-00-00 00:00:00' can not be represented as java.sql.Tim相关的知识,希望对你有一定的参考价值。

sql异常 java.sql.SQLException: Value \'0000-00-00 00:00:00\' can not be represented as java.sql.Timestamp

是因为java不能将 0000-00-00 00:00:00 转成正常时间格式

 

以上是关于报错 java.sql.SQLException: Value '0000-00-00 00:00:00' can not be represented as java.sql.Tim的主要内容,如果未能解决你的问题,请参考以下文章

mybatis之insert语句报错Cause: java.sql.SQLException: sql injection violation, syntax error: ERROR. token

java中mysql查询报错java.sql.SQLException: Before start of result set

报错 java.sql.SQLException: Value '0000-00-00 00:00:00' can not be represented as java.sql.Tim

SSM整合报错:errorCode 1045, state 28000 java.sql.SQLException: Access denied for user

报错处理:Cause: java.sql.SQLException: The server time zone value

连接mysql报错java.sql.SQLException: The server time zone value '?й???????' is unrecognized...解决方