NOT NULL and UNIQUE constraints are not allowed if the PRIMARY
KEY constraint is specified.
我的理解是:如果这个列是PRIMARY KEY 约束不能有NOT NULL and UNIQUE约束;
但事实不上这样的,如:
SQL> create table cc ( a number , b char not null primary key ) ;
表已创建。
最初由 hare 发布
[B]NOT NULL and UNIQUE constraints are not allowed if the PRIMARY
KEY constraint is specified.
我的理解是:如果这个列是PRIMARY KEY 约束不能有NOT NULL and UNIQUE约束;
但事实不上这样的,如:
SQL> create table cc ( a number , b char not null primary key ) ;
表已创建。 [/B]
其实pk之中隐含了not null 和unique。