所以我目前正在用SQL编写我的评估,这个错误一直出现(缺少选择关键字以及缺少括号)
以下是我进入Oracle的内容:
CREATE TABLE Customers
(Abstract VARCHAR2(400),
Author VARCHAR2(40) NOT NULL,
PRIMARY KEY (CustomerID),
LastName,
FirstName,
Address,
City,
Delivery address,
Phone number,
Email address,
Credit limit varchar(255),
Balance owing varchar(255),
Sales,
Sales person,
PRIMARY KEY (CUST_ID));
我是初学者,这就是为什么我不明白缺少什么。
答案 0 :(得分:1)
您真的需要从https://docs.oracle.com/cd/B28359_01/server.111/b28310/tables003.htm处的“如何创建表格”开始。 https://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_7002.htm
暂时发布正确的创建表定义,但您确实需要阅读文档并关联以下代码的工作方式。
CREATE TABLE Customers (
Abstract VARCHAR2(400),
Author VARCHAR2(40) NOT NULL,
CustomerID number PRIMARY KEY,
LastName VARCHAR2(40),
FirstName VARCHAR2(40),
Address VARCHAR2(400),
City VARCHAR2(40),
Delivery_address VARCHAR2(400),
Phone NUMBER,
Email_address VARCHAR2(40),
Credit VARCHAR(255),
Balance_owing VARCHAR(255),
Sales VARCHAR2(40),
Sales_person VARCHAR2(40)
);