mysql中datetime类型的字段为“0000-00-00 00:00:00”时,系统处理报错的解决方法
问题描述: 数据表中有记录的time字段(属性为timestamp)其值为:“0000-00-00 00:00:00”程序使用select 语句从中取数据时出现以下异常:java.sql.SQLException:Value '0000-00-00' can not be represented as java.sql.Date后查资料发现 “0000-00-00 ...
转载
2011-05-26 14:31:27 ·
729 阅读 ·
0 评论