17,377
社区成员
发帖
与我相关
我的任务
分享
create table students
(
stuID number primary key,
stuName varchar2(20),
stuSex char(2) default('男') check(stuSex='男' or stuSex='女'),
stuAge number(3) default(0) check(stuAge between 0 and 100),
stuCity varchar2(20),
classID number(4),
constraint students_fk foreign key(classID) references classes(classID)
);