alter表增加创建时间,修改时间字段。修改时间会在更新字段自动更新时间写法

alter table dictionary_parameter add column `update_time` datetime not null default current_timestamp on update current_timestamp comment '修改时间';

 


alter table dictionary_parameter add column `create_time` datetime not null default current_timestamp comment '创建时间';


版权声明:本文为coderyqwh原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。