MySQL创建表时,设置自动插入当前时间字段的两种格式

1.timestamp类型create table manager(id int not null primary key,mdate timestamp not null default current_timestamp);2.datetime类型create table manager(id int not null primary key,mdate datetime);