Created
January 13, 2015 04:31
-
-
Save chriskief/129a122feedd0d8ae90e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT id, name | |
FROM table | |
WHERE name IN (9, 8, 1, 2, 7, 3) | |
ORDER BY FIELD(id, 9, 8, 1, 2, 7, 3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment