2013-03-07 62 views
-1

我想在PL/SQL開發人員執行以下查詢錯誤:甲骨文:中聲明

DECLARE 
P_FILENAME VARCHAR2(200):= 'file1.csv'; 
P_DIRECTORY VARCHAR2(200):= 'ORA_DIR'; 
P_IGNORE_HEADERLINES NUMBER := 1; 

BEGIN 
Load_file(P_FILENAME => P_FILENAME, P_DIRECTORY => P_DIRECTORY, P_IGNORE_HEADERLINES =>  P_IGNORE_HEADERLINES); 
END 

我得到的錯誤:

ORA-06550: line 9, column 0: 
PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following: 
; <an identifier> <a double-quoted delimited-identifier> 
The symbol ";" was substituted for "end-of-file" to continue. 

我要去哪裏錯在這裏。

+0

我不是預言,我看不到任何picture.now,它看起來編輯後的罰款。 – Bastardo 2013-03-07 12:15:30

回答

2

你缺少的end聲明分號:

DECLARE 
P_FILENAME VARCHAR2(200):= 'file1.csv'; 
P_DIRECTORY VARCHAR2(200):= 'ORA_DIR'; 
P_IGNORE_HEADERLINES NUMBER := 1; 

BEGIN 
Load_file(P_FILENAME => P_FILENAME, P_DIRECTORY => P_DIRECTORY, 
      P_IGNORE_HEADERLINES =>  P_IGNORE_HEADERLINES); 
END; 
/
+0

謝謝。你是對的。 – Monica 2013-03-07 16:19:25