목차

MySQL DATETIME type

fractional seconds 지원

fractional seconds 반올림 문제 해결책

A new connection property, sendFractionalSeconds=true|false, has been introduced. It controls whether fractional seconds in timestamps are to be truncated on the client side or to be sent to the server side for truncation there. See the entry for the new property in Configuration Properties for Connector/J for details. Thanks to Kwon Nam Son for contributing the code. (Bug #21304726, Bug #77449)

sql_mode 설정을 통한 해결