首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > oracle >

oracle中怎么定义非空字段

2012-01-10 
oracle中如何定义非空字段?rt~~~~notnullornonull?[解决办法]create table aa(id number not null)或者SQ

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

热点排行