您的位置: 首页 > IT文章 > 从数据库中随机抽N条记录 从数据库中随机抽N条记录 分类: IT文章 • 2022-02-24 00:12:50 access:select top n * from table order by rnd(id)'id为数据库的自动编号字段 Sql Server:select top n * from table order by newid()