随机选取数据库中记录

Access:
select top n * from table order by rnd(id)'id为数据库的自动编号字段

Sql Server:
select top n * from table order by newid()

原文地址:https://www.cnblogs.com/fhuafeng/p/1501373.html