151028
2015-10-28 22:04
302 查看
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 like'95031' 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;
相关文章推荐
- OccTransVF
- C++ :stack介绍
- [c] ★ 宏和函数的区别
- TOJ 1547. To and Fro【栈和队列】
- AndroidMusicPlayer
- c++继承中的内存布局(转)
- WebForm网站和MVC网站运行机制的区别
- Java:网络编程之IP、URL
- SurfaceView的绘图机制
- Third scrum meeting - 2015/10/28
- 自定义圆形图片
- github使用
- 网络下的数据传输之XML数据的解析
- $(window).load(function() {})和$(document).ready(function(){})的区别
- Fibonacci(斐波纳契)数列各种优化解法
- iOS-字典转模型(单模型)的实现
- 算法性能评估-时间复杂度
- 关于js 函数传递引用参数理解
- 在刷新或者浏览器关闭的时候来提示是否继续操作
- LeetCode -- Single Number