从数据库中随机抽N条记录_MySQL
程序员文章站
2022-06-16 13:54:51
...
Access:
select top n * from table order by rnd(id)'id为数据库的自动编号字段
select top n * from table order by rnd(id)'id为数据库的自动编号字段
Sql Server:
select top n * from table order by newid()