1、生成随机实型数据
create procedure awf_RandDouble @min dec(14,2), @max dec(14,2), @result dec(14,2) output as begin set @result= cast((rand()*(@[email protected])[email protected]) as dec(14,2)) return @result end
2、生成随机整型数据
create procedure awf_RandInt @min int, @max int, @result int output as begin set @result= cast((rand()*(@[email protected])[email protected]) as int) return @result end
时间: 2024-12-27 03:42:40