2013-06-25 62 views
1

我在這裏新來的,所以我有一個問題要問.. sql的oracle說這個錯誤ORA-00917:缺少逗號。希望有一些解決方案sql oracle缺少逗號錯誤代碼ORA-00917

CREATE TABLE ASSIGNMENT (
    ASSIGN_NUM  CHAR(3), 
    ASSIGN_DATE  DATE, 
    PROJ_NUM  CHAR(3), 
    EMP_NUM    CHAR(3), 
    ASSIGN_JOB    CHAR(4), 
    ASSIGN_CHR_HR  NUMBER(8,2), 
    ASSIGN_HOUR   NUMBER(8,2), 
    ASSIGN_CHARGE  NUMBER(8,2)); 

DESCRIBE ASSIGNMENT 


INSERT INTO ASSIGNMENT VALUES ('1001','20-MAR-2006','18','103','503','84.50','3.5','295.75'; 

回答

6

看起來你缺少在INSERT語句的結束一個右括號:

INSERT INTO ASSIGNMENT VALUES ('1001','20-MAR-2006','18','103','503','84.50','3.5','295.75'); 
+0

sory我不能得到你的答案。你能寫嗎? –

+0

剛編輯我的答案 – GMax

1

試試這個插入:

INSERT INTO ASSIGNMENT VALUES ('1001',TO_DATE('20-MAR-2006','DD-MON-YYYY'),'18','103','503','84.50','3.5','295.75'); 
3

您在結束錯過right parenthisis的查詢。

INSERT INTO ASSIGNMENT VALUES (
    '1001','20-MAR-2006','18','103','503','84.50','3.5','295.75'; 
                  ^^^^^ 
                 Here you missing)