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
);
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
);
转载于:https://www.cnblogs.com/371610785qq/p/7670245.html