MySQL: Data truncation: Incorrect datetime value: '2006-10-01 02:22:44'

前端 未结 5 2222
遥遥无期
遥遥无期 2021-02-19 09:22

I\'m getting the following exception updating a row using MySQL via JDBC:

com.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect datetime value: \

5条回答
  •  后悔当初
    2021-02-19 09:51

    You did not show exact update SQL. But may be you forget the date part

    The correct format is yyyy-mm-dd hh:mm:ss format

    Date value should be in following format 2011-11-01 12:32:01

提交回复
热议问题