给定下表定义:
CREATE TABLE `timestamp_test` (
`timestamp_test_id` bigint(18) NOT NULL AUTO_INCREMENT,
`timestamp_test_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`timestamp_test_id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
以及以下数据:
INSERT INTO `timestamp_test` VALUE (0,'2009-03-09 02:07:01');
INSERT INTO `timestamp_test` VALUE (0,'2009-03-08 02:07:01');
请告诉我为什么我可以插入第一个日期而不是第二个日期?
MySQL版本:5.5
编辑:我收到的错误是:
[SQL]
INSERT INTO `timestamp_test` VALUE (0,'2009-03-08 02:07:01');
[Err] 1292 - Incorrect datetime value: '2009-03-08 02:07:01' for column 'timestamp_test_date' at row 1