Hi,
I am trying to get a DATETIME field from a DATE and a TIME field. none of the functions in MYSQL seems useful.
Is somebody aware how to do this or that if this can even be done? :)
Hi,
I am trying to get a DATETIME field from a DATE and a TIME field. none of the functions in MYSQL seems useful.
Is somebody aware how to do this or that if this can even be done? :)
It should be as easy as
UPDATE table SET datetime_field = CONCAT(date_field, " ", time_field);
@Pekka is right.
Also you can use CONCAT_WS(seperator, val1, val2,....)
CONCAT_WS(' ', date_field,time_field)