SELECT * FROM tmptbl WHERE id IN (5,10,14,1) ORDER BY CHARINDEX(','+CONVERT(varchar, tmptbl.id)+',', ',5,10,14,1,')
Leave a comment: