用数据库语句查询年龄在19~21范围内的学生信息0
create table student(
学号 char(4) primary key not null,
姓名 char(8) not null,
性别 char(2) not null,
出生日期 datetime not null,
家庭住址 text not null,
备注 text null
);
create table curriculum(
课程编号 char(4) primary key not null,
课程名称 varchar(50)not null,
学分 int not null,
);
create table grade(
学号 char(4)not null,
课程编号 char(4)not null,
分数 real not null,
foreign key(学号) references student(学号),
foreign key(课程编号)references curriculum(课程编号)
);
insert into student values('0001','刘卫平','男','1980-10-01','衡山市东风路78号',null);
insert into student values('0002','张卫明','男','1980-12-02','东阳市八一北路25号',null);
insert into student values('0003','马东','男','19780-07-04','长岭市五一路785号',null);
insert into student values('0004','钱达理','男','1980-05-10','滨海市洞庭大道278号',null);
insert into student values('0005','东方牧','男','1980-07-13','东方市中山大道25号',null);
insert into student values('0006','郭文斌','男','1980-06-04','长岛市解放大道25号',null);
insert into student values('0007','肖海燕','女','1980-03-15','山南市红旗路15号',null);
insert into student values('0008','张明华','女','1980-04-18','滨江市韶山路35号',null);