ERROR 1067 (42000): Invalid default value for 'created_at'

前端 未结 14 1680
-上瘾入骨i
-上瘾入骨i 2020-12-04 07:31

When I tried to alter the table it showed the error:

ERROR 1067 (42000): Invalid default value for \'created_at\'

I googled for this error

14条回答
  •  春和景丽
    2020-12-04 08:21

    In my case I have a file to import. So I simply added SET sql_mode = ''; at the beginning of the file and it works!

提交回复
热议问题