当前位置:网站首页>[MySQL learning notes 11] sort query
[MySQL learning notes 11] sort query
2022-06-21 17:26:00 【yqs_ two hundred and eighty-one million eight hundred and seven】
Basic grammar
select Field list from Table name order by Field 1 sort order 1, Field 2 sort order 2,…
sort order
asc: Ascending ( Default sort )
desc: Descending
practice
# Sort employees in ascending order by age
select * from emp order by age asc;
# According to the employment time , Sort employees in descending order
select * from emp order by entrydate desc;
# Sort in ascending order by age , If the age is the same, it will be sorted in descending order according to the employment time
select * from emp order by age asc,entrydate desc;
边栏推荐
- Serialization and deserialization of binary tree
- Move Protocol Beta测试版稳定,临时决定奖池规模再扩大
- Overseas new things | software developer "dynaboard" seed round raised US $6.6 million to develop low code platform to connect design, products and developers
- Yaml数据驱动演示
- 【Leetcode】297. Serialization and deserialization of binary tree (difficult)
- 【1108. IP 地址無效化】
- 【mysql学习笔记19】多表查询
- How to judge DNS resolution failure? How to resolve DNS resolution errors?
- Design and implementation of face verification system for floating population management
- Alibaba cloud server + pagoda panel + no domain name deployment web project
猜你喜欢
随机推荐
NLog自定义Target之MQTT
【1108. IP 地址無效化】
Sequence traversal of binary tree
变量
集成底座方案演示说明
Qt 知识:使用 QGraphicsPixmapItem类
uni-app框架学习笔记
MATLAB实现的基于对称TSP问题研究
Force deduction solution summary 1108-ip address invalidation
qtcreator报错解决
力扣解法汇总1108-IP 地址无效化
【SQLite】解决unrecognized token:“‘“
Nanjing University static program analyses -- Introduction learning notes
大话内存四区
The beta version of move protocol is stable, and it is temporarily decided to expand the scale of the prize pool
Sword finger offer II 089 House theft / Sword finger offer II 090 Ring house theft
Yaml文件详解
Common formula of derivative__ Common formulas of indefinite integral
D improve translation
Oracle中实现获取指定行内容——Rownum和Row_number()









