”工欲善其事,必先利其器。“—孔子《论语.录灵公》
首页 > 编程 > 版本5.6.5之前,使用current_timestamp与时间戳列的current_timestamp与时间戳列有什么限制?

版本5.6.5之前,使用current_timestamp与时间戳列的current_timestamp与时间戳列有什么限制?

发布于2025-04-30
浏览:679

What Were the Restrictions on Using CURRENT_TIMESTAMP with TIMESTAMP Columns in MySQL Before Version 5.6.5?
在时间戳列上使用current_timestamp或MySQL版本中的current_timestamp或在5.6.5

此限制源于遗留实现的关注,这些限制需要对当前的_timestamp功能进行特定的实现。

创建表`foo`( `Productid` int(10)unsigned not null, `添加date`时间戳而不是默认电流 `更新date`时间戳记而不是null默认current_timestamp on update current_timestamp上 )引擎= innodb;

此定义将导致以下错误:

不正确的表定义;可以在默认值或

update of Update子句中使用

current_timestamp

此更新的更改日志先前说明:

最新教程 更多>

免责声明: 提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发到邮箱:[email protected] 我们会第一时间内为您处理。

Copyright© 2022 湘ICP备2022001581号-3