2015-02-07 36 views

回答

0

在My SQL你可以做

select * from your_table 
order by field_x = 'L', 
     field_x 

和ANSI标准SQL是

select * from your_table 
order by case when field_x = 'L' 
       then 1 
       else 0 
     end, 
     field_x 
+0

完美!非常感谢你。 – TaLLe 2015-02-07 21:17:02