日期:2014-05-17  浏览次数:20991 次

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