当前位置:网站首页>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
边栏推荐
- Spark SQL空值Null,NaN判断和处理
- Convert binary search tree into cumulative tree (reverse middle order traversal)
- 程序员搞开源,读什么书最合适?
- Curlpost PHP
- Fibonacci number
- How to make your own robot
- The population logic of the request to read product data on the sap Spartacus home page
- Spark-SQL UDF函数
- How to use the flutter framework to develop and run small programs
- MIT doctoral thesis | robust and reliable intelligent system using neural symbol learning
猜你喜欢

Introduction to robotics I. spatial transformation (1) posture, transformation

Spark AQE

The population logic of the request to read product data on the sap Spartacus home page
![[groovy] XML serialization (use markupbuilder to generate XML data | set XML tag content | set XML tag attributes)](/img/09/9076de099147b2d0696fe979a68ada.jpg)
[groovy] XML serialization (use markupbuilder to generate XML data | set XML tag content | set XML tag attributes)

After 95, the CV engineer posted the payroll and made up this. It's really fragrant

Idea remotely submits spark tasks to the yarn cluster

How to use the flutter framework to develop and run small programs
![[groovy] compile time meta programming (AST syntax tree conversion with annotations | define annotations and use groovyasttransformationclass to indicate ast conversion interface | ast conversion inte](/img/61/73becfc3b46669d31b0cf334aa54f2.jpg)
[groovy] compile time meta programming (AST syntax tree conversion with annotations | define annotations and use groovyasttransformationclass to indicate ast conversion interface | ast conversion inte

激动人心,2022开放原子全球开源峰会报名火热开启

Spark SQL null value, Nan judgment and processing
随机推荐
2020.2.13
logstash清除sincedb_path上传记录,重传日志数据
Finding the nearest common ancestor of binary tree by recursion
RAID disk redundancy queue
1791. Find the central node of the star diagram / 1790 Can two strings be equal by performing string exchange only once
Differences between standard library functions and operators
Yolov5, pychar, Anaconda environment installation
Spark AQE
golang mqtt/stomp/nats/amqp
GNSS terminology
The relationship between FPGA internal hardware structure and code
MYSQL---查询成绩为前5名的学生
Five challenges of ads-npu chip architecture design
Getting started with devkit
看抖音直播Beyond演唱会有感
激动人心,2022开放原子全球开源峰会报名火热开启
Promise
Mobilenet series (5): use pytorch to build mobilenetv3 and learn and train based on migration
Exciting, 2022 open atom global open source summit registration is hot
Recursive method converts ordered array into binary search tree