How can I update only the time in an already existing DateTime field in MySQL? I want the date to stay the same.
Try this:
UPDATE yourtable SET yourcolumn = concat(date(yourcolumn), ' 21:00:00') WHERE Id = yourid;
2.1m questions
2.1m answers
60 comments
57.0k users