排序 order by 的用法

order by  跟在select* from 后面

order by 默认的是升序, asc 升序  desc 降序

select * from 表名 order by  字段名  asc

在带有过滤条件的情况下, 跟在where后面

select * from A where  Age>23 order by Salary desc

原文地址:https://www.cnblogs.com/lucky9/p/6251805.html