知道这样的
created timestamp not null default current_timestamp;
获取时间戳的函数:
select unix_timestamp();
有没有字段为int型自动插入时间戳的呢?
-- created int(11) not null default (当前时间戳) ???
created timestamp not null default current_timestamp;
获取时间戳的函数:
select unix_timestamp();
有没有字段为int型自动插入时间戳的呢?
-- created int(11) not null default (当前时间戳) ???