1. 按列名排序,默认是升序的。
单列升序:select
单列降序:select
多列升序:select
多列降序:select
多列混合降序:select column_one, column_two from table_name order by column_one desc, column_two desc;
2. 按列的位序排序, 默认是升序
select * from
3. NULL排序
空值在前:select
空值在后:select