MySQL is not allowing ON UPDATE CURRENT_TIMESTAMP for a DATETIME field

后端 未结 7 1221
情书的邮戳
情书的邮戳 2021-02-12 23:33

I have seen a lot of related questions, but I cannot place my finger on this specific question:

I have a MySQL table with both a TIMESTAMP (for when the field was create

7条回答
  •  离开以前
    2021-02-13 00:09

    That feature appears to have been introduced in 5.6. Works as expected on my default OS X install.

    Reference: Automatic Timestamp Properties Before MySQL 5.6.5

提交回复
热议问题