2013-05-15 45 views
1
Create TABLE Emp_test1 
(Employee_id Number (6) 
CONSTRAINT employee_id NOT NULL, 
FIRST_NAME Varchar2 (20), 
LAST_NAME Varchar2 (25) 
CONSTRAINT Last_name NOT NULL, 
Email Varchar2 (25) 
CONSTRAINT Email NOT NULL, 
PHONE_NUMBER Varchar2 (20) 
HIRE_DATE Date 
CONSTRAINT Hire_date NOT NULL, 
Job_id Varchar2 (10) 
CONSTRAINT Job_id NOT NULL, 
Salary Number (8,2), 
Commission_pct Number (2,2), 
Manager_id NUmber (6), 
Department_id Number (4)), 

爲什麼我一直在租用日期行上得到ORA 00907缺少右括號?你是如何做到的?ORA - 00907:缺少右括號

回答

4

PHONE_NUMBER Varchar2 (20),

Create TABLE Emp_test1 
(Employee_id Number (6) 
CONSTRAINT employee_id NOT NULL, 
FIRST_NAME Varchar2 (20), 
LAST_NAME Varchar2 (25) 
CONSTRAINT Last_name NOT NULL, 
Email Varchar2 (25) 
CONSTRAINT Email NOT NULL, 
PHONE_NUMBER Varchar2 (20), 
HIRE_DATE Date 
CONSTRAINT Hire_date NOT NULL, 
Job_id Varchar2 (10) 
CONSTRAINT Job_id NOT NULL, 
Salary Number (8,2), 
Commission_pct Number (2,2), 
Manager_id NUmber (6), 
Department_id Number (4)); 
後失去了一個逗號