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;

相关文章:

  • 2021-10-03
  • 2021-12-29
  • 2022-12-23
  • 2021-08-18
  • 2021-07-15
猜你喜欢
  • 2022-12-23
  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-20
相关资源
相似解决方案