当前位置:网站首页>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
边栏推荐
- The growth path of test / development programmers, the problem of thinking about the overall situation
- Live video source code, realize local storage of search history
- VSphere implements virtual machine migration
- Illustrated network: the principle behind TCP three-time handshake, why can't two-time handshake?
- MYSQL GROUP_ The concat function realizes the content merging of the same ID
- 在产业互联网时代,将会凭借大的产业范畴,实现足够多的发展
- Cve-2017-11882 reappearance
- MCU realizes OTA online upgrade process through UART
- A preliminary study of geojson
- Study diary: February 13, 2022
猜你喜欢

MYSQL GROUP_ The concat function realizes the content merging of the same ID

cf:C. The Third Problem【关于排列这件事】

VSphere implements virtual machine migration

Comment faire votre propre robot
![[groovy] JSON serialization (jsonbuilder builder | generates JSON string with root node name | generates JSON string without root node name)](/img/dd/bffe27b04d830d70f30df95a82b3d2.jpg)
[groovy] JSON serialization (jsonbuilder builder | generates JSON string with root node name | generates JSON string without root node name)

JVM_ 15_ Concepts related to garbage collection

I'm interested in watching Tiktok live beyond concert

看抖音直播Beyond演唱会有感

Cf:c. the third problem

Exciting, 2022 open atom global open source summit registration is hot
随机推荐
MCU通过UART实现OTA在线升级流程
Model analysis of establishment time and holding time
Getting started with devkit
Reading notes of the beauty of programming
如何制作自己的機器人
Zhuhai laboratory ventilation system construction and installation instructions
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
golang mqtt/stomp/nats/amqp
GNSS terminology
Intensive learning weekly, issue 52: depth cuprl, distspectrl & double deep q-network
Promise
[simple implementation of file IO]
Live broadcast system code, custom soft keyboard style: three kinds of switching: letters, numbers and punctuation
I'm interested in watching Tiktok live beyond concert
直播系统代码,自定义软键盘样式:字母、数字、标点三种切换
Kotlin core programming - algebraic data types and pattern matching (3)
【第30天】给定一个整数 n ,求它的因数之和
Extension and application of timestamp
Fibonacci number
[groovy] JSON serialization (jsonbuilder builder | generates JSON string with root node name | generates JSON string without root node name)