AdSense

網頁

2020/8/5

Oracle LEAST function

Oracle LEAST函式可取得多個輸入參數中的最小值。

SELECT LEAST(3, 5, 1) "LEAST" FROM DUAL;
+-------+
| LEAST |
+-------+
| 1     |
+-------+

SELECT LEAST('B', 'C', 'A') "LEAST" FROM DUAL;
+-------+
| LEAST |
+-------+
| A     |
+-------+

SELECT LEAST(1.2, 3.5, 7.9) "LEAST" FROM DUAL;
+-------+
| LEAST |
+-------+
| 1.2   |
+-------+

3 則留言:

Jack 提到...

走了都不講的誒 XD

Matt 提到...

@Jack 就默默的走阿:D

Jack 提到...

加個 line 啊

AdSense