当前位置: 代码迷 >> Oracle管理 >> oracle中怎么定义非空字段
  详细解决方案

oracle中怎么定义非空字段

热度:96   发布时间:2016-04-24 06:01:23.0
oracle中如何定义非空字段?
rt~~~~
not   null     or     no   null?

------解决方案--------------------
create table aa(id number not null);
或者
SQL> create table aa(id number);

Table created.

Elapsed: 00:00:00.00
SQL> alter table aa modify id number not null;

Table altered.

Elapsed: 00:00:00.00

------解决方案--------------------
not null
  相关解决方案