求两个整数的最小公倍数 declare @num1 bigint, @num2 bigint set @num1=6 set @num2=8declare @result bigint declare @max int declare @times int if @num1 = @max ) begin if( @times%@num1 = 0 and @times%@num2 = 0 ) begin set @result=@times break end set @times=@times + 1 end select @result
