2
我已經將值插入我的導師表以下查詢:它運行後缺少逗號
INSERT INTO Tutor (tutor_ID NUMBER(3),
F_name VARCHAR(14),
L_name VARCHAR(13),
Date_Joined DATE,
Phone NUMBER(10),
Email VARCHAR(30),
amount_of_allowance VARCHAR(5),
tutoree_ID NUMBER(6)
) VALUES
(610,
'DAVID',
'FOONG',
'02/07/2007',
02104465,
'[email protected]',
'800',
007);
寫道
"Error starting at line 28 in command:
INSERT INTO Tutor (tutor_ID NUMBER(3), F_name VARCHAR(14), L_name VARCHAR(13), Date_Joined DATE, Phone NUMBER(10), Email VARCHAR(30), amount_of_allowance VARCHAR(5), tutoree_ID NUMBER(6))
VALUES (610, 'DAVID', 'FOONG', '02/07/2007', 02104465, '[email protected]', '800', 007)
Error at Command Line:28 Column:28
Error report:
SQL Error: ORA-00917: missing comma
00917. 00000 - "missing comma"
*Cause:
*Action:"
但我不明白的地方我錯過了逗號?
不包括類型的字段(NUMBER(3),VARCVHAR(14)等)。那些數據庫已經知道,並且會導致錯誤,因爲那裏有未知的格式。 – JMC