我有这个代码(例如)
CREATE TABLE s(
id int,
y int NOT NULL UNQIUE,
x int NOT NULL,
z varchar(50) NOT NULL,
k varchar(50),
l varchar(50) NOT NULL,
m int NOT NULL,
v int NOT NULL,
c int NOT NULL,
r varchar(400),
CONSTRAINT s_pk PRIMARY KEY (id));
但我得到了ORA-00907:缺少右括号。我做错了什么?
答案 0 :(得分:1)
CREATE TABLE s(
id int,
y int NOT NULL UNIQUE,
x int NOT NULL,
z varchar(50) NOT NULL,
k varchar(50),
l varchar(50) NOT NULL,
m int NOT NULL,
v int NOT NULL,
c int NOT NULL,
r varchar(400),
CONSTRAINT s_pk PRIMARY KEY (id));