alter table tb_catalog modify create_time datetime NOT NULL DEFAULT CURRENT_TIMESTAMP;
alter table tb_catalog modify update_time datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
mysql修改字段的更新时间
于 2022-08-12 16:09:16 首次发布
alter table tb_catalog modify create_time datetime NOT NULL DEFAULT CURRENT_TIMESTAMP;
alter table tb_catalog modify update_time datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;