PLSQL编程-if判断【详细讲解】

今天爱分享给大家带来PLSQL编程-if判断【详细讲解】,希望能够帮助到各位。

if判断

一、语法

if 条件1 then
     
elsif 条件2 then
       
else 
     
end if;

二、演示

declare
  age number := &age;
begin
  if age < 18 then
    dbms_output.put_line('小屁孩');
  elsif age >= 18 and age <= 24 then
    dbms_output.put_line('年轻人');
  elsif age > 24 and age < 40 then
    dbms_output.put_line('老司机');
  else
    dbms_output.put_line('老年人');
  end if;
end;
原文链接:https://blog.itblood.com/198.html,转载请注明出处。
0
首枷的卢卡~欲望与荣耀的竞技场~V1.2.0 AI汉化+原版JP[2.9G] [ACT/3D作品/全动态/汉化]
首枷的卢卡~欲望与荣耀的竞技场~V1.2.0 AI汉化+原版JP[2.9G] [ACT/3D作品/全动态/汉化]
刚刚 有人购买 去瞅瞅看

站点公告

显示验证码
没有账号?注册  忘记密码?