在5.6之前的版本,使用CURRENT_TIMESTAMP作为默认值时,就会出现错误!!
CREATE TABLE `biz_article` (
......
......
`create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间',
......
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 0 CHARACTER SET = utf8mb4 COLLATE = ut
网友评论