sql 随机取指定范围内的值

SELECT Fdatetime, CONVERT(datetime, CONVERT(char(10), Fdatetime, 120) + ' ' + CONVERT(char(12), time1), 20)
AS newdatetime, time1, DATEADD(mi, - FLOOR(RAND(ABS(CHECKSUM(NEWID()))) * 15), CONVERT(datetime,
CONVERT(char(10), Fdatetime, 120) + ' ' + CONVERT(char(12), time1), 20)) AS testDatetime
FROM test

上一篇:javascript获取某个时间的毫秒数


下一篇:ivew 绑定时间控件