2013-03-07 43 views

回答

1

在MySQL:

update your_table set your_field=concat(date(your_field),' 07:30:00'); 
+0

日期函數提取一個日期或日期時間表達的日期部分。然後你可以連接時間部分。 – Curlas 2013-03-07 10:19:58

+0

非常感謝你!我會盡快嘗試! – 2013-03-07 10:23:46

+0

真的,如果你願意,你可以使用php: $ newTime = date(「Y-m-d」,strtotime($ oldTime))。「07:30:00」; – Curlas 2013-03-07 11:09:12