当前位置:网站首页>[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
- Simple ideas and procedures for quick sorting
- tinymce.init()浏览器兼容问题
- Pytest框架
- 设计一个打印整棵树的打印函数
- 使用 Guzzle 中间件进行优雅的请求重试
- 实战---商场登录测试
- 导数常用公式__不定积分常用公式
- Many software companies are actually "jokes"
- Disruptor local thread queue_ Workprocessor exception_ Fatalexceptionhandler--- inter thread communication work note 004
猜你喜欢
随机推荐
RTMP webrtc protocol OpenSSL installation
变量与指针
Yaml文件详解
数据类型
Hairui technology completed the pre-A round of financing of tens of millions of yuan to build the first artificial intelligent distribution Internet of things in China
Force deduction solution summary 1108-ip address invalidation
[1108. IP address invalidation]
牛客网:验证IP地址
【SQLite】解决unrecognized token:“‘“
Use picgo core and Alibaba cloud to automatically upload typera pictures
【349期】面试官:如何优雅的自定义 ThreadPoolExecutor 线程池?
Overseas new things | software developer "dynaboard" seed round raised US $6.6 million to develop low code platform to connect design, products and developers
Nanjing University static program analyses -- Introduction learning notes
Oracle JDBC Driver
Elegant request retry using guzzle Middleware
Unittest framework
Comparison of UDP and TCP
剑指 Offer II 089. 房屋偷盗 / 剑指 Offer II 090. 环形房屋偷盗
Qt5 knowledge: string list qstringlistmodel
Pytest框架实现前后置的处理








