K
K
King_Of_Magic2013-03-02 20:50:59
MySQL
King_Of_Magic, 2013-03-02 20:50:59

Merging two columns?

I have three columns: date, time and datetime which have the following format:
date = 2013-03-02
time =
21:48:00 datetime = 000-00-00 00:00:00
Please tell me how to compose correctly SQL query so that you can simply execute it in phpMyAdmin and the data from the date and time columns would be saved in datetime and there it would be 2013-03-02 21:48:00

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
truekenny, 2013-03-02
@King_Of_Magic

UPDATE table SET `datetime`=CONCAT(`date`,' ',`time`)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question