CREATE OR REPLACE PROCEDURE sp_test8(in monthe int,out season varchar) is
begin
case
when monthe >=1 and monthe<=3 then
set season='spring';
when monthe >=4 and monthe<=6 then
set season='summer';
when monthe >=7 and monthe<=9 then
set season='autumn';
when monthe >=10 and monthe<=12 then
set season='winter';
end case;
exception
when others then
dbms_output.put_line('该季节不存在');
end sp_test8;
PROCEDURE TCMP.SP_TEST8 编译错误
错误:PLS-00103: 出现符号 "IN"在需要下列之一时:
current delete exists
prior
行:1
文本:CREATE OR REPLACE PROCEDURE sp_test8(in monthe int,out season varchar) is