create PROCEDURE result(in n int,out total int) #执行过程开始begin#存贮过程中变量的定义 declare num int default 0; set total :=0; while num<n do set num :=num+1; set tatal :=total+num; end while; end
时间: 2024-10-30 06:01:16
create PROCEDURE result(in n int,out total int) #执行过程开始begin#存贮过程中变量的定义 declare num int default 0; set total :=0; while num<n do set num :=num+1; set tatal :=total+num; end while; end