order by 特定字段放在特定的位置

放在第一行:

select * from TDICTCODE t where t.ftypeid='46' ORDER BY case FDICTCODE  when '45' then 1 else 2 end,FDICTCODE;

放在最后一行:

select * from TDICTCODE t where t.ftypeid='46' ORDER BY case FDICTCODE  when '45' then 26 else 25 end,FDICTCODE;

原文地址:https://www.cnblogs.com/liujie-e2/p/6927865.html