mysql add hours to the current time

UPDATE t_cpzs_code
SET production_time = ADDTIME(
date('2018-11-01') + INTERVAL 3 HOUR,
time(production_time)
) WHERE equipment_name='15#'

Published 75 original articles · won praise 9 · views 50000 +

Guess you like

Origin blog.csdn.net/zy1471162851/article/details/102482588