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

Posted liujiee2

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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;

以上是关于order by 特定字段放在特定的位置的主要内容,如果未能解决你的问题,请参考以下文章