constraint

来源:互联网 发布:mac os 10.8 iso下载 编辑:程序博客网 时间:2024/05/29 17:44
create table kecheng(
  student_name       char(20)         primary key,
  score              decimal(7,2)     not null,
  student_sex        char(1)          not null,
  constraint c check ( student_sex in('m','f'))
);
原创粉丝点击