select ptp.id from [dbo].[Pic_Temp_Process] ptp where ptp.id in (5599, 1763317, 1130129, 505992, 174477, 23565, 1192438) order by charindex(','+convert(varchar,ptp.id)+',',',5599, 1763317, 1130129, 505992, 174477, 23565, 1192438,')我的语句5599, 1763317, 1130129, 505992, 174477, 23565, 1192438顺序应该是按这样子但实际返回给我请问in的排序sql怎样写,谢谢!
1 回答
- 1 回答
- 0 关注
- 1070 浏览
添加回答
举报
0/150
提交
取消