How can I update only the time in an already existing DateTime field in MySQL? I want the date to stay the same.
I have solved in this way:
UPDATE table SET myDateTime = CONCAT_WS(' ',DATE(myDateTime), CURTIME()) WHERE id = @id;
Obviously you should change CURTIME() with your desired time.
CURTIME()