2014-09-30 72 views

回答

0
SET @MIN = '2014-10-04 8:00:00';SET @MAX = '2014-10-30 20:00:00';SELECT TIMESTAMPADD(SECOND, FLOOR(RAND() * TIMESTAMPDIFF(SECOND, @MIN, @MAX)), @MIN); 

你可以參考Stack