SELECT * FROM tblItems WHERE itemId IN (9,1,4)
It returns in the order in which SQL finds them (which happens to be 1, 4, 9), however I want them to be returned in the order specified in the array.
I know that I can change the order of their work in my native language (obj c), but is there a way to do this in SQL?
Something like this would be great:
ORDER BY itemId (9,1,4) -- <-- this dosn't work :)
source share