使用场景:需要查询捆号为10,23,9...的数据,查询结果也是按照输入的顺序排列
sql:
select * from store where xh in (10,23,9) order by case xh when 10 then 1 when 23 then 2 when 9 then 3 end
oracle高级查询
原文:https://www.cnblogs.com/zhuxiang1633/p/13144004.html