」工欲善其事,必先利其器。「—孔子《論語.錄靈公》
首頁 > 程式設計 > 版本5.6.5之前,使用current_timestamp與時間戳列的current_timestamp與時間戳列有什麼限制?

版本5.6.5之前,使用current_timestamp與時間戳列的current_timestamp與時間戳列有什麼限制?

發佈於2025-03-09
瀏覽:745

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