2018-11-22
阅读量:
889
非空约束
非空约束,指的是字段的值不能为空:
强制列不能为 NULL 值,约束强制字段始终包含值。这意味着,如果不向字段添加值,就无法插入新记录或者更新记录。
– 语法:字段名 字段类型 not null
create table emp(
depid char(3) primary key,
depname varchar(20) not null,
peoplecount int
);






评论(0)


暂无数据
推荐帖子
0条评论
0条评论
0条评论