用NEWID()方法。

SELECT  TOP 1  *  ,NEWID() AS random from [toblename] order by random

其中的1可以换成其他任意整数,表示取的数据条数

相关文章:

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