gpt4 book ai didi

mysql - 在 MySQL 5.7 中创建具有 NULL 时间戳列的表

转载 作者:行者123 更新时间:2023-11-29 20:02:06 24 4
gpt4 key购买 nike

`effective_end_utc` timestamp NOT NULL COMMENT 'The UTC timestamp for when the target ceases to be in effect.',

这最终会给我

ERROR 1067 (42000) at line 27: Invalid default value for 'effective_end_utc'

基于其他响应,我什至在模式开头将模式设置为以下

SET GLOBAL SQL_MODE='ALLOW_INVALID_DATES'

知道出了什么问题吗?

最佳答案

应该使用默认值更改架构,例如

 `reported_timestamp_utc` timestamp NULL DEFAULT NULL COMMENT

关于mysql - 在 MySQL 5.7 中创建具有 NULL 时间戳列的表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40491518/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com