Say I have the following query
SELECT *
FROM foo
WHERE P_KEY IN (5,7,2,6);
When I enter the query, the P_KEY values return the rows in the order of 2,5,6,7. How can I make it so it returns the rows in the order I entered it in the IN clause
This
P_KEY
5
7
2
6
NOT This
P_KEY
2
5
6
7