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

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

MySQL:

SELECT * FROM table order by rand() limit  20; 

Oracle:

select * from table order by dbms_random.value()

相关文章:

  • 2022-12-23
  • 2022-01-28
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-29
  • 2021-11-26
相关资源
相似解决方案