Blog Content

  • mysql에서 datetime 타입의 데이터에서 나타나는 오류

    Category 슬램덩크/soing2의 슬램덩크(쇼핑몰) on 2017. 5. 28. 18:46

    g5_shop_order 테이블에서 od_invoice_time이라는 필드가 있다.필드 정보는 다음과 같다. Field : od_invoice_timeType : datetimeDefault : 0000-00-00 00:00:00 그러나 이 필드를 불러와 Java Class에 매핑하며 문제가 발생했다.오류 내용은 다음과 같다. There was an unexpected error (type=Internal Server Error, status=500).Error attempting to get column 'od_invoice_time' from result set. Cause: java.sql.SQLException: Value '0000-00-00 00:00:00' can not be represen..

    Read more