记order by 语句对null值排序: 目录 记order by 语句对null值排序: MySQL: Oracle: SqlServer: MySQL: 将null值放在最后 select * from user order by i f(isnull(sort), 1, 0),sort asc,publish_time desc; 将null值放在最前 select * from user order by if(isnull(sort), 0, 1),sort asc,publish_