标签:
1,排在最前面用order by name nulls first;
eg:select t.name,t.code from table t where t.code!=‘1‘ order by name nulls first;
2,排在最后面order by name nulls last;
eg:select t.name,t.code from table t where t.code!=‘1‘ order by name nulls last;
标签:
原文地址:http://www.cnblogs.com/anlove0328-1121/p/5481383.html