SELECT DECODE(SIGN(100-120), 1, 100-80, -1, 0) as Result FROM DUAL; 結果: 參考: oracle中decode函數的用法 · Oracle/PLSQL: Sign Function.
確定! 回上一頁