在线咨询
QQ咨询
服务热线
服务热线:13125520620
TOP

从数据库中随机抽N条记录-数据库

发布时间:2011-11-12 浏览:4907

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

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

TAG
软件定制,软件开发,瀚森HANSEN
0
该内容对我有帮助