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-12-23
  • 2021-09-09
  • 2022-01-08
  • 2021-06-03
  • 2021-06-11
  • 2021-07-29
  • 2022-03-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
  • 2021-11-28
相关资源
相似解决方案