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

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

posted on 2008-01-06 15:52  苗SIR  阅读(476)  评论(0编辑  收藏  举报