爷的眼睛闪亮
insideDotNet En_summerGarden

案例:

select
    *
from
    f_xxx fb
order by
    (case
        when fb.status = 0 then 1
        when fb.status = 3 then 2
        when fb.status = 1 then 3
        when fb.status = 2 then 4
        else 4
    end)

 

posted on 2023-03-16 10:59  爷的眼睛闪亮  阅读(61)  评论(0编辑  收藏  举报