当前位置:网站首页>MySQL数据库 - 单表查询(三)
MySQL数据库 - 单表查询(三)
2022-04-23 19:28:00 【x 心 动】
第1关:对查询结果进行排序
USE School;
#请在此处添加实现代码
########## Begin ##########
########## 查询1班同学的所有信息以成绩降序的方式显示结果 ##########
select * from tb_score where class_id=1 order by score desc;
########## End ##########
第2关:分组查询
USE School;
#请在此处添加实现代码
########## Begin ##########
########## 对班级名称进行分组查询 ##########
select * from tb_class group by class_id;
########## End ##########
第3关:使用 LIMIT 限制查询结果的数量
USE School;
#请在此处添加实现代码
########## Begin ##########
########## 查询班级中第2名到第5名的学生信息 ##########
select * from tb_score order by score desc limit 1,4;
########## End ##########
版权声明
本文为[x 心 动]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_45623072/article/details/124055804
边栏推荐
- Strange problems in FrameLayout view hierarchy
- @MapperScan与@Mapper
- Speculation on the way to realize the smooth drag preview of video editing software
- LPC1768 关于延时Delay时间与不同等级的优化对比
- MySQL syntax collation
- goroutine
- Encyclopedia of professional terms and abbreviations in communication engineering
- Codeforces Round #784 (Div. 4)
- JS calculation time difference
- Oracle configuration st_ geometry
猜你喜欢
5 minutes to achieve wechat cloud applet payment function (including source code)
Build intelligent garbage classification applet based on Zero
Virtual machine performance monitoring and fault handling tools
为何PostgreSQL即将超越SQL Server?
Zero base to build profit taking away CPS platform official account
Lottery applet, mother no longer have to worry about who does the dishes (assign tasks), so easy
RuntimeError: Providing a bool or integral fill value without setting the optional `dtype` or `out`
arcMap 发布切片服务
Using oes texture + glsurfaceview + JNI to realize player picture processing based on OpenGL es
Why is PostgreSQL about to surpass SQL Server?
随机推荐
Quick start to static class variables
OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
一个简单的(基于redisson的)分布式同步工具类封装
Network protocol: SCTP flow control transmission protocol
Use of fluent custom fonts and pictures
Problems caused by flutter initialroute and home
Transaction processing of SQL Server database
JS to get the local IP address
Lottery applet, mother no longer have to worry about who does the dishes (assign tasks), so easy
Some ideas about time-consuming needs assessment
An algorithm problem was encountered during the interview_ Find the mirrored word pairs in the dictionary
ArcMap publishing slicing service
Strange passion
Golang timer
PostgreSQL
Grafana 分享带可变参数的链接
C6748 软件仿真和硬件测试 ---附详细FFT硬件测量时间
Kubernetes入门到精通-KtConnect(全称Kubernetes Toolkit Connect)是一款基于Kubernetes环境用于提高本地测试联调效率的小工具。
[报告] Microsoft :Application of deep learning methods in speech enhancement
Gossip: on greed