Oracle11g Alter table dept drop约束dno\U notnull

Oracle11g Alter table dept drop约束dno\U notnull,oracle11g,Oracle11g,这里我删除了一个非null约束。在oracle中是否有其他对此的声明 SQL> alter table dept drop constraint dno_notnull; 是,如果约束实际上是命名的“非空”约束,而不是定义为“检查(dno非空)”的检查约束: 例如,可以在表创建时添加命名的NOTNULL约束,如下所示: create table dept (dno integer constraint dno_notnull not null, ...); 固定格式和大小写 creat

这里我删除了一个
非null
约束。在oracle中是否有其他对此的声明

SQL> alter table dept drop constraint dno_notnull;

是,如果约束实际上是命名的“非空”约束,而不是定义为“检查(dno非空)”的检查约束:

例如,可以在表创建时添加命名的NOTNULL约束,如下所示:

create table dept (dno integer constraint dno_notnull not null, ...);

固定格式和大小写
create table dept (dno integer constraint dno_notnull not null, ...);