Answers for "mysql where in maintain order"

SQL
0

mysql where in maintain order

SELECT * FROM foo f where f.id IN (2, 3, 1)
ORDER BY FIELD(f.id, 2, 3, 1);
Posted by: Guest on May-20-2021

Code answers related to "mysql where in maintain order"

Code answers related to "SQL"

Browse Popular Code Answers by Language