oracle存储过程测试,提示 ORA-24344: success with compilation error...
发布网友
发布时间:2024-08-20 17:33
我来回答
共1个回答
热心网友
时间:2024-08-21 22:54
有两处错误:
1.update后的分后
2.rStr NUMBER;要去掉,rStr NUMBER;是多余的,procedure是没有返回值的,就算写成function,也应该写成return number 而不是rStr NUMBER;,
还有就是要在此处写is
改成这样,执行以下修改后的看看:
CREATE OR REPLACE PROCEDURE Rate_Test(Codestr IN Temptable.Pcode%TYPE,
Pstr IN Temptable.Prob%TYPE) IS
BEGIN
SELECT Rper
INTO Rstr
FROM Temptable
WHERE Pcode = Codestr
AND Prob = Pstr;
IF 1 = 1 THEN
BEGIN
UPDATE Temptable SET Createflag = '1';
COMMIT;
END;
END IF;
EXCEPTION
WHEN Other THEN
ROLLBACK;
END Rate_Test;