Oracle:

       select * from (select * from tableName order by dbms_random.value) where rownum < N

 

MS SQLServer:

       select top N * from tableName order by newid()

 

My SQL:

       select * from tableName order by rand() limit N

原文:https://blog.csdn.net/senton/article/details/4404101

相关文章:

  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
猜你喜欢
  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2022-03-03
  • 2022-12-23
相关资源
相似解决方案