oracle order by 自定义排序

SELECT
    *
FROM
    table
ORDER BY
    decode(
        name,
        'value1',
        1,
        'value2',
        2,
        'value3',
        3,
        'value4 ',
        4,
        valueN',
        N
    )        
posted @ 2019-12-25 13:25  changlinlo  阅读(1977)  评论(0编辑  收藏  举报