A common question on the mailing lists is how to sort results in a particular order. Just use the FIELD function:
SELECT * FROM tickets
ORDER BY FIELD(priority, ‘High’, ‘Normal’, ‘Low’, ‘The Abyss’);
Read: 1200
A common question on the mailing lists is how to sort results in a particular order. Just use the FIELD function:
SELECT * FROM tickets
ORDER BY FIELD(priority, ‘High’, ‘Normal’, ‘Low’, ‘The Abyss’);
Read: 1200