完整性约束命名子句

constraint <完整性约束条件名><完整性约束条件>
<完整性约束条件>包括not null、unique、primary key、foreign key、check短语等

create table student
(
sno numeric(6) constraint c1 check(sno between 90000 and 9999),
sname char(20) scontsraint c2 not null,
sage numeric(3) contsraint c3 check(sage<30),
sex char(2) constraint c4 check(sex in('男','女')),
constraint studentkey primary key(sno)
)