Mysql
 sql >> Database >  >> RDS >> Mysql

Ordina la colonna in base a determinati criteri in mysql

Usa field() :

SELECT *
FROM Vehicles
WHERE MainGroup=Vehicle
ORDER BY field(Subgroup, 'Car', 'Truck', 'Motorbike');