seckill icon indicating copy to clipboard operation
seckill copied to clipboard

创建success_killed表要设置create_time自动更新

Open LinG955 opened this issue 4 years ago • 0 comments

``create_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间' 对于MySQL version:8.0.19,要设置create_time自动更新,因为insertSuccessKilled()没有插入create_time,create_time为默认值00-00-00 00:00:00。不然在测试queryByIdWithSeckill()时程序会报错:Caused by: com.mysql.cj.exceptions.DataReadException: Zero date value prohibited。

LinG955 avatar May 18 '20 12:05 LinG955