mysql5.8 'xx' timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP 报错Column 'xx' cannot be null
同样的接口同样的数据,在同事那就能插入,我这就不行,查了一下资料终于找到问题所在explicit_defaults_for_timestamp 这个my.ini里面的东西,MySQL 5.6版本引入,explicit_defaults_for_timestamp 来控制对timestamp NULL值的处理首先在mysql里面查一下show variables like '%explici...
原创
2019-11-14 19:02:20 ·
2126 阅读 ·
0 评论