創(chuàng)建存儲(chǔ)函數(shù)出錯(cuò)
create?or?replace?function?queryenpincome(eno?in?number) return?number as psal?emp.sal%type; pcomm?emp.comm%type; begin ??select?sal,comm?into?psal?pcomm?from?emp?where?empno=eno; ??return?psal*12+nvl(pcomm,0); end;
create?or?replace?function?queryenpincome(eno?in?number) return?number as psal?emp.sal%type; pcomm?emp.comm%type; begin ??select?sal,comm?into?psal?pcomm?from?emp?where?empno=eno; ??return?psal*12+nvl(pcomm,0); end;
2018-04-13
舉報(bào)
2018-04-13
select
?sal,comm?
into
?psal?pcomm,psal?pcomm這兩個(gè)單詞之間沒有逗號(hào)分隔。這種問題應(yīng)該有提示,提問應(yīng)該把報(bào)錯(cuò)提示帶上。