oracle的NOTNULL约束
指定字段不能为空:
1.建表时:
create table [table_name](
…
[column_name] [type] not null,
[column_name1] [type]
);
注:
1.column_name1未添加not null就是可为空
2."[]"中为变量
2.建表后:
alter table [table_name] modify [column_name] not null;
取消约束:
alter table [table_name] modify [column_name] null;