标签:innodb set 必须 ble int explicit create inno tab
explicit_defaults_for_timestamp这个值,默认设置ON比较好,但是无论设置OFF还是ON,关于有TIMESTAMP的CREATE TABLE t
(x
int(11) DEFAULT NULL,y
timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,z
timestamp NULL DEFAULT NULL,a
timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8
例子罗列了三种TIMESTAMP的状态,必须要确定这个表相关列需要的正确状态。
explicit_defaults_for_timestamp再议
标签:innodb set 必须 ble int explicit create inno tab
原文地址:https://blog.51cto.com/accole/2468152