I am doing a query in table thread
WHERE t.threadid in (44371,44373,44374,44372,44375)
How can I make the results display in that input order and not by threadid as it seems to automatically order them by?
thanks
add this at the end of yuor query
order by case threadid when 44371 then 1 when 44373 then 2 when 44374 then 3 when 44372 then 4 when 44375 then 5 end
thanks, but those id are dynamically generated
So, generate the order by clause dynamically.
Cool, thanks.... I got it
Don't forget to mark this thread resolved.