我用的是SQLITE数据库
我想查询时按 in 的内容排序 该怎么写 如:
select * from xx c1 in('1','2','5')
------解决方案--------------------------------------------------------
没什么好办法。
- SQL code
select * from xx where c1 in('1','2','5')order by case c1 when '1' then 1 when '2' then 2 when '5' then 3 end