ORACLE...存储过程问题,编译可以正常结束,但是调用出错,说存储过程参数不对,不知道是怎么 50
CREATEORREPLACEPROCEDUREOBSERVATION.PD_ALLAREA(STUDENTinNVARCHAR2,SCOREoutINT)issINT;...
CREATE OR REPLACE PROCEDURE OBSERVATION.PD_ALLAREA (STUDENT in NVARCHAR2,SCORE out INT)
is
s INT;
y INT;
BEGIN
SELECT COUNT(SCORE)INTO s FROM CC WHERE STUDENT=STUDENT;
IF(STUDENT='张三')THEN
SELECT SCORE INTO y FROM CC WHERE STUDENT=STUDENT;
Dbms_output.put_line(y);
ELSIF(STUDENT='李四')THEN
DBMS_OUTPUT.put_line(S);
END IF;
Exception
When others then
Rollback;
END PD_ALLAREA;
/
是调用的语法不对,还是存储过程本身存在问题? 展开
is
s INT;
y INT;
BEGIN
SELECT COUNT(SCORE)INTO s FROM CC WHERE STUDENT=STUDENT;
IF(STUDENT='张三')THEN
SELECT SCORE INTO y FROM CC WHERE STUDENT=STUDENT;
Dbms_output.put_line(y);
ELSIF(STUDENT='李四')THEN
DBMS_OUTPUT.put_line(S);
END IF;
Exception
When others then
Rollback;
END PD_ALLAREA;
/
是调用的语法不对,还是存储过程本身存在问题? 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询