oracle按照in的顺序进行排序

oracle按照in的顺序进行排序

 

select * from table_name where id in (1,3,7)
order by case id
              when 1 then 1 
              when 3 then 2
              when 7 then 3 
         end;
posted @ 2014-12-07 21:26  努力挣扎的小兵  阅读(1399)  评论(0编辑  收藏  举报