order by 排序
ORDER BY _column1, _column2; /* _column1升序,_column2升序 */
ORDER BY _column1, _column2 DESC; /* _column1升序,_column2降序 */
ORDER BY _column1 DESC, _column2 ; /* _column1降序,_column2升序 */
ORDER BY _column1 DESC, _column2 DESC; /* _column1降序,_column2降序 */
如果 排序的值为null 怎么办?
oracle 中 字段为null 则默认排最后面
order by column desc nulls first /* 空值排最前面 同理 last 排最后面*/