记录下mysql 添加数据更新时间
添加数据更新时间
alter table 表名 add `addtime` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间';
修改数据更新时间
alter table 表名 add `updatetime` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间'