Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause 原因: mysql 5.6 之前的版本不允许单表出现 2 个 Timestamp 默认值 为 CURRENT_TIMESTAMP 的字段 解决: mysql5.6 之前的版本是不可以这样设置,升级到 5.6 以上即可.…
mysql建表时如果有两个或以上的字段为Timestamp,那么可能会出现如下错误: Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE 原因是当你给一个timestamp设置为on updatecurrent_timestamp的时候,其他的timestamp字段需要显式设定default值 但是如果你有两个timest…