SQL server排序时将NULL放到数据集的最下面

ORDER BY CASE when CreateTime is null then 1 else 0 end asc,CreateTime asc

原文地址:https://www.cnblogs.com/Anthony518/p/11198173.html