set serveroutput on
declare
v_socre number:=80;
begin
if v_socre>=80 then
dbms_output.put_line('优秀');
elsif v_socre>=60 then
dbms_output.put_line('良好');
else
dbms_output.put_line('补好');
end if;
end;
declare
v_socre number:=80;
begin
if v_socre>=80 then
dbms_output.put_line('优秀');
elsif v_socre>=60 then
dbms_output.put_line('良好');
else
dbms_output.put_line('补好');
end if;
end;