现在的位置: 首页 > 综合 > 正文

oracle if else elsif 使用例子

2013年01月04日 ⁄ 综合 ⁄ 共 155字 ⁄ 字号 评论关闭

--方式一

if exp1 then

begin

...

end;

elsif exp2 then

begin

...

end;

else

  begin

...

end;

end if;

--方式二

if exp then

begin

...

end;

else

begin

...

end;

end if;

--方式三

if exp then

begin

...

end;

end if;

抱歉!评论已关闭.