MySQL add 12 hours to a time field

后端 未结 5 1170
渐次进展
渐次进展 2020-12-03 21:18

I need to add 12 hours to a MySQL TIME field (not DATETIME) and I\'m having trouble.

UPDATE `events` 
SET start_time = DATE_ADD(sta         


        
5条回答
  •  孤城傲影
    2020-12-03 21:53

    update my_table SET modified_date = ADDTIME(scheduled_date, '03:15:00') 
    

    This will add 3 hours , 15 minutes in modified_date

提交回复
热议问题