我在MySQL表中有一个字段,其数据类型为timestamp
.我正在把数据保存到那个表中.但当我将时间戳(1299762201428
)传递给记录时,它会自动将值0000-00-00 00:00:00
保存到该表中.
如何在MySQL表中存储时间戳?
以下是我的INSERT
条声明:
INSERT INTO table_name (id,d_id,l_id,connection,s_time,upload_items_count,download_items_count,t_time,status)
VALUES (1,5,9,'2',1299762201428,5,10,20,'1'),
(2,5,9,'2',1299762201428,5,10,20,'1')