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)),

为什么我在hire_date 行上总是ORA 00907缺少右括号?

4

1 回答 1

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));
于 2013-05-15T06:23:41.893 回答