student表
teacher表
course表
score表
对这四个表进行一些练习。
1:查询student表中所有记录。
select *from student;
2:查询student表中name/sex/classid这些列。
select name,sex,classid from student;
3:查询教师中不重复的单位department。
select distinct department from teacher;
distinct 列(一个或多个) 获取不重复的记录
4:查询score表中成绩再60至80之间的记录。
select *from score where degree between 60 and 80;
5:查询score表中成绩为85,86,88的记录。
select *from score where degree in (86,85,88);
6:查询student表中为95031班的或性别为女生的。
select *from student where classid=95031 or sex='女';
7:以classid列降序查询student表的所