Here’s a query:
SELECT *
FROM table
WHERE id = 1
OR id = 100
OR id = 50
Note that I provided the ids in this order: 1,100,50.
I want the rows to come back in that order: 1,100,50.
Currently, i comes back 1,50,100 – basically in ascending order. Assume the rows in the table were inserted in ascending order also.
You can just do this with
ORDER BY:0is before1inORDER BY.