原文:【转】MySQL錯誤:Value '0000-00-00' can not be represented as java.sql.Date解決方法

原文地址:MySQL錯誤:Value can not be represented as java.sql.Date解決方法 jsp Tomcat Mysql開發中采用ResultSet取值時,不管是採用getString 還是採用getDate 時,均會拋出如題所述錯誤.查閱Mysql官方Bug資訊: http: dev.mysql.com doc refman . en connector j ...

2015-01-13 14:52 0 5102 推荐指数:

查看详情

mssql-异常value '0000-00-00' can not be represented as java.sql.Date

Mysql开发中采用ResultSet取值時,不管是才用getString()还是用getDate(),或者getObject,均会拋出如题所述异常.查阅Mysql官方Bug咨询: 是因为日期型(Date或DateTime类型)字串为'000-00-00'时,MySQL预设处理方式是拋 ...

Tue Mar 01 19:50:00 CST 2016 0 3484
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM