欢迎投稿

今日深度:

oracle goto循环,oraclegoto

oracle goto循环,oraclegoto


如下:

declare
x number;
begin
x:=0;
<<gsign>>    --定义goto标签
x:=x+1;      --这里加几就是控制step的方法
dbms_output.put_line(x);  
if x<5 then
goto gsign;    --将语句定义到上面goto的地方
end if;
end;


 

www.htsjk.Com true http://www.htsjk.com/shujukunews/5008.html NewsArticle oracle goto循环,oraclegoto 如下: declarex number;beginx:=0;gsign --定义goto标签x:=x+1; --这里加几就是控制step的方法dbms_output.put_line(x); if x5 thengoto gsign; --将语句定义到上面goto的地方end if;end;...
相关文章
    暂无相关文章
评论暂时关闭