mysql 对表中指定字段值按指定顺序排序

select * from tbl_sutdent where age in (20, 25, 30) order by field(`age`, 30, 20, 25);

你可能感兴趣的:(mysql,mysql,order,by,排序)