警告:使用编译错误创建的过程

时间:2013-03-24 03:10:47

标签: oracle

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;

3 个答案:

答案 0 :(得分:3)

要查找对象上的错误,请尝试

SELECT * FROM ALL_ERRORS WHERE NAME = 'CHECK_STOCK_QTY'

分享并享受。

答案 1 :(得分:2)

您在程序名称后错过了ISAS

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;