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

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

瀏覽:691
日期:2024-07-21
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 ......看更多