gpt4 book ai didi

mysql - 'date' 字段的默认值无效

转载 作者:行者123 更新时间:2023-11-29 04:37:39 25 4
gpt4 key购买 nike

I took a look at this possibly dupicated article, but still did not find the result that I am looking for. The answer to that question explained how things work, but did not provide how to actually solve this problem. There was a solution to MYSQL bench, but I am working with TERMINAL on MAC OX.

生日 NOT NULL DEFAULT '0000-00-00'

返回:错误 1067 (42000):“生日”的默认值无效。

如何解决这个问题?有人可以提供完整语法吗?我正在使用 MAC OX 上的终端。

非常感谢您的帮助!

最佳答案

根据 MySQL 文档 (http://dev.mysql.com/doc/refman/5.7/en/datetime.html),支持的范围是“1000-01-01”到“9999-12-31”

关于mysql - 'date' 字段的默认值无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37428510/

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