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/