当前位置:网站首页>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
边栏推荐
- logstash清除sincedb_path上传记录,重传日志数据
- Questions about database: (5) query the barcode, location and reader number of each book in the inventory table
- Problems and solutions of converting date into specified string in date class
- Spark AQE
- Arduino六足机器人
- After 95, the CV engineer posted the payroll and made up this. It's really fragrant
- Overview of Zhuhai purification laboratory construction details
- Why can't mathematics give machine consciousness
- Ffmpeg captures RTSP images for image analysis
- Recoverable fuse characteristic test
猜你喜欢
[groovy] compile time meta programming (compile time method interception | method interception in myasttransformation visit method)
What is the most suitable book for programmers to engage in open source?
Cve-2017-11882 reappearance
Arduino hexapod robot
2020.2.13
Installation and use of esxi
[groovy] XML serialization (use markupbuilder to generate XML data | create sub tags under tag closures | use markupbuilderhelper to add XML comments)
Comment faire votre propre robot
MCU realizes OTA online upgrade process through UART
MCU通过UART实现OTA在线升级流程
随机推荐
NLP basic task word segmentation third party Library: ICTCLAS [the third party library with the highest accuracy of Chinese word segmentation] [Chinese Academy of Sciences] [charge]
Gartner发布2022-2023年八大网络安全趋势预测,零信任是起点,法规覆盖更广
STM32按键消抖——入门状态机思维
Meta AI西雅图研究负责人Luke Zettlemoyer | 万亿参数后,大模型会持续增长吗?
Promise
云导DNS和知识科普以及课堂笔记
The growth path of test / development programmers, the problem of thinking about the overall situation
Idea remotely submits spark tasks to the yarn cluster
STM32 key chattering elimination - entry state machine thinking
Construction plan of Zhuhai food physical and chemical testing laboratory
FFT 学习笔记(自认为详细)
Ubantu check cudnn and CUDA versions
直播系统代码,自定义软键盘样式:字母、数字、标点三种切换
Leetcode Fibonacci sequence
[groovy] XML serialization (use markupbuilder to generate XML data | create sub tags under tag closures | use markupbuilderhelper to add XML comments)
How to make your own robot
For a deadline, the IT fellow graduated from Tsinghua suddenly died on the toilet
Novice entry depth learning | 3-6: optimizer optimizers
小程序容器可以发挥的价值
BiShe - College Student Association Management System Based on SSM