Source没有Runnable目标

时间:2013-06-26 14:09:07

标签: oracle stored-procedures oracle-sqldeveloper

我在oracle中创建了一个存储过程,它工作正常。现在我想用parm创建一个存储过程。接受Date并简单地将其插入到select语句中的where子句中。这就是我所拥有的

CREATE OR REPLACE
PROCEDURE DOMESTIC
( par_start_date IN DATE) As
BEGIN

 INSERT INTO DATA
                  (   STATEMENTNUMBER,
                      STATEMENTTOTAL, 
                      STATEMENTDATE,
                      BALANCE_FORWARD,
                      CUSTID,
                      CUSTNAME,
                      STATEMENTPURCHASES,
                      STATEMENTPAYMENTS,
                      NOMAILNOPRINT,
                      SOLDTOCOUNTRYNAME,
                      CREDITZEROFLAG,
                      SOLDTOCOUNTRYCODE)

            SELECT  STATEMENTNUMBER,
                    STATEMENTTOTAL,
                    STATEMENTDATE, 
                    BALANCE_FORWARD, 
                    CUSTID,
                    CUSTNAME, 
                    STATEMENTPURCHASES,
                    STATEMENTPAYMENTS,
                    NOMAILNOPRINT,
                    SOLDTOCOUNTRYNAME,
                    CREDITZEROFLAG,
                    SOLDTOCOUNTRYCODE
                        FROM STATEMENT 
                              WHERE (STATEMENTDATE= par_start_date);
END DOMESTIC;

此过程编译没有任何错误,但是当我运行它时。我收到错误说明 “来源没有可运行目标”
我,在这里遗漏了什么吗?

0 个答案:

没有答案