We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
报错内容:pymysql.err.InternalError: (1364, "Field 'create_time' doesn't have a default value")
(PS:虽然在数据库中设置createtime这一项为“允许空值”可以解决,但是这样就没有创建时间了。所以不想用这个办法)
The text was updated successfully, but these errors were encountered:
设置字段为空时取当前时间。
ALTER TABLE `sign_event` CHANGE `create_time` `create_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ALTER TABLE `sign_guest` CHANGE `create_time` `create_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
Sorry, something went wrong.
No branches or pull requests
报错内容:pymysql.err.InternalError: (1364, "Field 'create_time' doesn't have a default value")
(PS:虽然在数据库中设置createtime这一项为“允许空值”可以解决,但是这样就没有创建时间了。所以不想用这个办法)
The text was updated successfully, but these errors were encountered: