UPDATE `test`
set end_time = add_time, begin_time = SUBDATE(add_time,INTERVAL 1 MINUTE)
WHERE end_time >= "2019-07-20" or begin_time >= '2019-07-20'
這里處理的將end_time變成add_time,
begin_time變成add_time的前1分鐘
UPDATE `test`
set end_time = add_time, begin_time = SUBDATE(add_time,INTERVAL 1 MINUTE)
WHERE end_time >= "2019-07-20" or begin_time >= '2019-07-20'
這里處理的將end_time變成add_time,
begin_time變成add_time的前1分鐘