declare @M int,@N int set @m=10 set @n=1 select top 10 cast(rand(checksum(newid()))*(@M-@N)+@n as int) from t_table
本文共 165 字,大约阅读时间需要 1 分钟。
declare @M int,@N int set @m=10 set @n=1 select top 10 cast(rand(checksum(newid()))*(@M-@N)+@n as int) from t_table
转载于:https://www.cnblogs.com/eric-z/p/3766413.html