如何按我输入的顺序排序(100)

  • 主题发起人 lingmao3
  • 开始时间
L

lingmao3

Unregistered / Unconfirmed
GUEST, unregistred user!
select 报告编号 from t_xjtest where 报告编号 in ('J10000621','J10000625','J10000622') 我希望排序是J10000621J10000625J10000622不能update库中某字段,再按那字段排序
 
order by case when 报告编号='J10000621' then 1 when 报告编号='J10000625' then 2 when 报告编号='J10000622' then 3 end
 
3q,大虾,谢了![:)]
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
I
回复
0
查看
435
import
I
I
回复
0
查看
547
import
I
顶部