order by用法
时间: 2023-12-26 11:44:21 浏览: 79
ORDER BY是SQL语句中的一个关键字,用于对查询结果进行排序。默认情况下,ORDER BY按照升序对记录进行排序,即从小到大排列。如果需要按照降序进行排序,可以使用DESC关键字。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [MySQL中 (GROUP BY 用法)和(ORDER BY用法)](https://blog.csdn.net/weixin_45754865/article/details/122871480)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [group by和order by用法,group by 1 和 order by 1含义](https://blog.csdn.net/qq_39072649/article/details/104554272)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文