DECLARE @nMinimumCount INT= 1
DECLARE @nMaximumCount INT= 100
SELECT abs(CHECKSUM(NEWID()))%(@nMaximumCount+ [email protected])[email protected]
@nMinimumCount ,@nMaximumCount为指定获取随机数的最小和最大范围
时间: 2024-11-05 11:50:07
DECLARE @nMinimumCount INT= 1
DECLARE @nMaximumCount INT= 100
SELECT abs(CHECKSUM(NEWID()))%(@nMaximumCount+ [email protected])[email protected]
@nMinimumCount ,@nMaximumCount为指定获取随机数的最小和最大范围