生成随机时间 -- 带时分秒 select FROM_UNIXTIME(UNIX_TIMESTAMP('20100101000000')+ROUND(RAND()*(UNIX_TIMESTAMP()-UNIX_TIMESTAMP('20100101000000')))); -- 确定日期,随机时间 SELECT concat('2018-03-03 ', floor(10+rand()*10),':',floor(10+rand()*49),':',floor(10+rand()*49)); 获