MySQL Incorrect datetime value: '0000-00-00 00:00:00'

后端 未结 19 1008
没有蜡笔的小新
没有蜡笔的小新 2020-11-29 15:51

I\'ve recently taken over an old project that was created 10 years ago. It uses MySQL 5.1.

Among other things, I need to change the default character set from latin1

19条回答
  •  遥遥无期
    2020-11-29 16:35

    If you are entering the data manually you may consider removing the values and the zeros on the TIMESTAMP(6).000000 so that it becomes TIMESTAMP. That worked fine with me.

提交回复
热议问题