mysql计算1到m的和

CREATE FUNCTION sum_natural_num(m INT) RETURNS INT BEGIN DECLARE sum INT DEFAULT 0; DECLARE i INT DEFAULT 1; WHILE i