在MySQL表中加入时间戳timestamp分下列三种基本情况
创建时插入当前时间戳:
create table 表名(create_time timestamp default current_timestamp);
在创建好的表中插入当前时间戳:
alter table 表名 add column create_time timestamp default current_timestamp;
修改已经插入好的当前时间戳表项:
alter table 表名 modify column create_time timestamp default current_timestamp;