SQL 语句中用了int 就显示缺少右括号 10
createtableORDERS(Order_IDvarchar2(10)primarykey,Order_Typevarchar2(20)notnull,Order_...
create table ORDERS(
Order_ID varchar2(10) primary key,
Order_Type varchar2(20) not null,
Order_Delivery_Date DATE not null,
Quantity INT NOT NULL,
Order_Description VARCHAR2(40) NOT NULL,
Customer_ID Varchar2(10) REFERENCES CUSTOMER(Customer_ID)
);
这段代码中把INT 改成NUMBER(20)就可以,不然就会出现缺少右括号的报错 展开
Order_ID varchar2(10) primary key,
Order_Type varchar2(20) not null,
Order_Delivery_Date DATE not null,
Quantity INT NOT NULL,
Order_Description VARCHAR2(40) NOT NULL,
Customer_ID Varchar2(10) REFERENCES CUSTOMER(Customer_ID)
);
这段代码中把INT 改成NUMBER(20)就可以,不然就会出现缺少右括号的报错 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询