【发布时间】:2016-12-02 03:25:03
【问题描述】:
MySQL 语句:
insert into `banners`
(`path`, `app_id`, `enabled`, `from_date`, `to_date`, `updated_at`, `created_at`)
values
('banners/example.png', 'com.example.ccp_attacker', 1, '2000-01-01 00:00:00', '2099-12-31 00:00:00', '2100-06-04 00:00:00', '2100-06-04 00:00:00')
产生错误#1292 - Incorrect datetime value: '2100-06-04 00:00:00' for column 'updated_at' at row 1
为什么 2100-06-04 00:00:00 不是有效时间?
【问题讨论】:
-
看看this one可能有关系。
-
updated_at是TIMESTAMP列吗? -
它在 DATE 列上。
标签: mysql