使用oracle decode对表字符列进行order by 排序

SQL> select * from baltyp;

BALTYPCD
----------
note
odx
seb
abc

SQL> select baltypcd,decode(baltypcd,'note',0,'odx',1,'seb',2,3) resultid from b
altyp order by resultid;

BALTYPCD     RESULTID
---------- ----------
note                0
odx                 1
seb                 2
abc                 3
请使用浏览器的分享功能分享到微信等