create or replace PROCEDURE check_stock_qty
BEGIN
FOR r IN
( SELECT P_ID FROM product WHERE PRODUCT.p_value < 50
)
LOOP
apex_mail_p.mail
(
'raavimistry@gmail.com',
'ravimistryof180@gmail.com',
'TEST',
'( r.P_ID )');
END LOOP;
END;
答案 0 :(得分:3)
要查找对象上的错误,请尝试
SELECT * FROM ALL_ERRORS WHERE NAME = 'CHECK_STOCK_QTY'
分享并享受。
答案 1 :(得分:2)
您在程序名称后错过了IS
或AS
:
create or replace PROCEDURE check_stock_qty IS
...
答案 2 :(得分:1)
您错过了AS
关键字
CREATE OR REPLACE PROCEDURE check_stock_qty
AS
BEGIN
FOR r IN (SELECT P_ID
FROM product
WHERE PRODUCT.p_value < 50)
LOOP
apex_mail_p.mail ('raavimistry@gmail.com',
'ravimistryof180@gmail.com',
'TEST',
'('|| r.P_ID ||')');
END LOOP;
END;