我有一个specimen
包含一个字段的表room
。我想按room
while排序记录room == 'f'
,然后按排序其余记录topography_index
。如何在MySQL查询中执行此操作?
尝试这个
Select * From YourTable
Order By (Case When Room = 'f' Then 0 Else 1 End),topography_index
您可以将maxi number替换为1
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句