#① 查询计算机系学生的学号、姓名、性别和出生日期。
select sno,sname,ssex,sbirthday from students where sdept ='计算机';
#② 查询姓“李”的学生的学号和姓名。
select sno,sname from studentsWHERE sname like '李%';
#③ 查询课程表中先行课为空的课程名。
select cname from courses where precno is null;
#④ 查询考试成绩有不及格的学生的学号。
select sno from sc where grade<60;
#⑤ 求选修了C1 课程或C2 课程的学生的学号及成绩。
select sno,grade from sc where cno=('C02' or 'c01');
#⑥ 查询全体计算机系学生的姓名及其年龄。
select sno,timestampdiff(YEAR,SBirthday,curdate()) AS SAVEPOINT from students where sdept ='计算机';
#⑦ 查询计算机系在1986-1987 年之间出生的学生的姓名。
select sname from students where sbirthday betw