Ответ 1
SELECT * FROM Customers
ORDER BY case when country = 'P' then 1
when country = 'A' then 2
when country = 'L' then 3
when country = 'H' then 4
else 5
end asc
Не ASC
или DESC
.... Заказ по индивидуальному заказу...
Я пытался использовать case
но не успешно
SELECT * FROM Customers
ORDER BY case country
when 'P' then 1 …
Это то, что я хочу:
SELECT * FROM Customers
ORDER BY case when country = 'P' then 1
when country = 'A' then 2
when country = 'L' then 3
when country = 'H' then 4
else 5
end asc