apache-httpd-2.4.58-win64-VS17.zip
操作环境:
win10
Microsoft SQL Server Management Studio 2016
SQL Server2016
declare @i int
set @i=0
while(@i<20)
begin
insert into rgb(R,G,B)values(ABS(checksum(newid()))%256,ABS(checksum(newid()))%256,ABS(checksum(newid()))%256)
set @i = @i+1
end
tip:
扩展从a-b间的随机整数(a,b本?也是整数):
a+abs(checksum(newid()))%(b-a+1)
代码中是0~255随机数,因此为0+abs(checksum(newid()))%(255-0+1)
0-1间的随机实数:
rand() --或是 rand(checksum(newid()))