码迷,mamicode.com
首页 > 其他好文 > 详细

151028

时间:2015-10-28 23:03:05      阅读:319      评论:0      收藏:0      [点我收藏+]

标签:

select sname,ssex,class from t_hq_student;

select distinct depart from t_hq_teacher;

select * from t_hq_student;

select * from t_hq_score where degree between 60 and 80;

select * from t_hq_score where degree in (85,86,88);

select * from t_hq_student where class like95031 or ssex like ;

select * from t_hq_student order by class desc;

select * from t_hq_score order by cno;

select * from t_hq_score order by degree desc;

select class, count(1) as 人数 from t_hq_student where class =95031 group by class;

select * from t_hq_score where  degree >= all(select degree from t_hq_score);

select cno,avg(degree) as 平均成绩 from t_hq_score group by cno;

select sno from t_hq_score where degree > 70 and degree < 90;

 

151028

标签:

原文地址:http://www.cnblogs.com/zhuxiaolin/p/4918856.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!