update RemoteDetection set humidity=round((rand()*3+29),0),TEMPERATURE=round((rand()*3+16),0),atmosphere=round((rand()*2+101),1),WINDSPEED=round((rand()*2+2),1) where REMOTEDETECTIONID='2'…
ALTER FUNCTION [dbo].[ufn_Random] ( @A INT, @B INT ) RETURNS INT AS BEGIN /* 功能:生成随机数 */ ,) , SELECT @R=RandValue*(@A-@B)+@B FROM VW_RAND ) AS INT) RETURN(@R) END…