PHPMyAdmin 2 时间戳字段
我有一个问题。
我在表“created”和“last_updated”中创建了 2 个时间戳字段。两者都是时间戳。 “last_updated”设置为用户上次登录的时间,“created”是该帐户的创建时间。
我将两个默认值设置为“无”。但是,我可以在列表视图中看到“已创建”,
on update CURRENT_TIMESTAMP No CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
我已尝试自行编辑此列,并且在保存后它仍然显示相同的内容。
我不想要任何默认值。我怎样才能改变这个?
I have an issue.
I have created 2 timestamp fields within a table 'created' and 'last_updated'. Both are timestamps. 'last_updated' is set to the last time the user logged in, and 'created' is the time of creation on that account.
I am setting both defaults to 'none'. But, I can see in the list view that 'created' has
on update CURRENT_TIMESTAMP No CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
I've tried to edit this column on it's own, and after it saves it still says the same thing.
I don't want any defaults. How can I change this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
时间戳的默认值不能是一个随机的字符串值 - 必须是时间戳。
And the default of a timestamp cannot be a random string value -- it has to be a timestamp.