当前位置:网站首页>Mysql--- query the top 5 students
Mysql--- query the top 5 students
2022-07-06 00:57:00 【The evening wind blows】
List of articles
demand : The query result is top 5 Students of
After getting the demand , First analyze the requirements , Find out the screening conditions
One 、Mysql Inquire about
1、 The most basic query
select * from table where name="panpan"
2、 Check before 5 name
stay mysql Top of the filtered data in , You can use keywords :limit
select * from table where name="panpan" limit 1
explain : The name in the query table is panpan The first record
3、 Under what conditions , The demand is to screen by achievements , You can use order by Sort filter
select * from table where order by grade
Two 、 Query application
Query after merging :
select * from score order by grade limit 5
explain : Query to score Exterior and interior grade , With grade Screening , Before extraction 5 Bar record
边栏推荐
- Novice entry depth learning | 3-6: optimizer optimizers
- Logstash clear sincedb_ Path upload records and retransmit log data
- 图解网络:TCP三次握手背后的原理,为啥两次握手不可以?
- GNSS terminology
- Differences between standard library functions and operators
- 激动人心,2022开放原子全球开源峰会报名火热开启
- Finding the nearest common ancestor of binary tree by recursion
- Reading notes of the beauty of programming
- Introduction to robotics I. spatial transformation (1) posture, transformation
- Gartner released the prediction of eight major network security trends from 2022 to 2023. Zero trust is the starting point and regulations cover a wider range
猜你喜欢
[groovy] XML serialization (use markupbuilder to generate XML data | create sub tags under tag closures | use markupbuilderhelper to add XML comments)
For a deadline, the IT fellow graduated from Tsinghua suddenly died on the toilet
可恢复保险丝特性测试
Finding the nearest common ancestor of binary tree by recursion
MCU realizes OTA online upgrade process through UART
2020.2.13
Problems and solutions of converting date into specified string in date class
How to make your own robot
ADS-NPU芯片架构设计的五大挑战
Cve-2017-11882 reappearance
随机推荐
China Taiwan strategy - Chapter 8: digital marketing assisted by China Taiwan
1791. Find the central node of the star diagram / 1790 Can two strings be equal by performing string exchange only once
Getting started with devkit
Finding the nearest common ancestor of binary search tree by recursion
《强化学习周刊》第52期:Depth-CUPRL、DistSPECTRL & Double Deep Q-Network
猿桌派第三季开播在即,打开出海浪潮下的开发者新视野
Cve-2017-11882 reappearance
Meta AI西雅图研究负责人Luke Zettlemoyer | 万亿参数后,大模型会持续增长吗?
logstash清除sincedb_path上传记录,重传日志数据
curlpost-php
Live video source code, realize local storage of search history
The population logic of the request to read product data on the sap Spartacus home page
图解网络:TCP三次握手背后的原理,为啥两次握手不可以?
从 1.5 开始搭建一个微服务框架——调用链追踪 traceId
MYSQL GROUP_ The concat function realizes the content merging of the same ID
MCU通过UART实现OTA在线升级流程
Programmer growth Chapter 9: precautions in real projects
Study diary: February 13, 2022
云导DNS和知识科普以及课堂笔记
Differences between standard library functions and operators