經安全檢測,此網站為安全網站,請放心前往原始網址!

How do you set a default value for a MySQL Datetime column? - Stack Overflow

In version 5.6.5, it is possible to set a default value on a datetime column, and even make a column that will update when the row is updated. The type definition: CREATE TABLE foo ( `creation_time` DATETIME DEFAULT CURRENT_TIMESTAMP ...

stackoverflow.com

網址安全性掃描由 google 提供