以下三种方法,可以将空值排序放到最后面
1.SELECT * FROM t_user ORDER BY -STATUS DESC
2.SELECT * FROM t_user ORDER BY ISNULL(STATUS), STATUS ASC
3.SELECT * FROM t_user ORDER BY STATUS IS NULL, STATUS ASC
以下三种方法,可以将空值排序放到最后面
1.SELECT * FROM t_user ORDER BY -STATUS DESC
2.SELECT * FROM t_user ORDER BY ISNULL(STATUS), STATUS ASC
3.SELECT * FROM t_user ORDER BY STATUS IS NULL, STATUS ASC