DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SQL
mysql where in maintain order
SELECT * FROM foo f where f.id IN (2, 3, 1) ORDER BY FIELD(f.id, 2, 3, 1);
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#mysql
#maintain
#order
ADD COMMENT
Topic
COMMENT
Name
6+7 =
Submit