create procedure pro11()
begin
declare i int;
repeat
insert into t1(filed) values(i);
set i=i+1;
until i>=5
end repeat;
end;
为什么总提示语法错误呢?
用的是innodb引擎,workbench5.2 mysql:5.5.17顺便提问一下:如何不用存储过程直接执行循环语句呢?
begin
declare i int;
repeat
insert into t1(filed) values(i);
set i=i+1;
until i>=5
end repeat;
end;
为什么总提示语法错误呢?
用的是innodb引擎,workbench5.2 mysql:5.5.17顺便提问一下:如何不用存储过程直接执行循环语句呢?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货