/*产生从N到M的随机整数,假设N、M都是整数*/
declare @M int,@N int
set @N=6
set @M=13
select cast((rand()*(@M-@N)+@N) as int)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-01
  • 2021-05-19
  • 2022-12-23
  • 2021-08-11
  • 2022-12-23
猜你喜欢
  • 2021-09-28
  • 2022-03-03
  • 2021-09-06
  • 2021-05-20
  • 2022-12-23
相关资源
相似解决方案