这是一个创建于 4615 天前的主题,其中的信息可能已经有所发展或是发生改变。
知道这样的
created timestamp not null default current_timestamp;
获取时间戳的函数:
select unix_timestamp();
有没有字段为int型自动插入时间戳的呢?
-- created int(11) not null default (当前时间戳) ???
2 条回复 1970-01-01 08:00:00 +08:00  | | 1 zzNucker 2013 年 9 月 5 日 应该没的吧 自动时间戳只能是timestamp类型 |
 | | 2 qsun 2013 年 9 月 5 日 可以做个trigger, on update/insert |
.wwads-cn { border-radius: 3px !important; } .wwads-text { color: var(--link-color) !important; }