BEGIN
SET @count=100;
IF @count=100 || @count=300 THEN
SET @count=11;
ELSEIF @count=2 THEN
SET @count=3;
END IF;
SELECT @count; #查看运行结果
END
BEGIN
SET @count=100;
IF @count=100 || @count=300 THEN
SET @count=11;
ELSEIF @count=2 THEN
SET @count=3;
END IF;
SELECT @count; #查看运行结果
END