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;
1.4m articles
1.4m replys
5 comments
57.0k users