select top 10 * from tablename order by NEWID()

--生成随机时间

   SELECT CONVERT(VARCHAR,CONVERT(DATETIME,100/RAND(),120),120)

相关文章: