일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- java
- MYSQL
- Oracle
- switch
- null
- @RequestBody
- SSL
- 오라클
- checbox
- exception
- json
- DB
- jquery
- php
- 한글
- html
- 호환성
- JSTL
- 스크립트
- HTML5
- 문자열
- maven
- 웹 플랫폼 설치 관리자
- 네이버스마트 에디터
- RADIO
- 날짜
- spring form tag
- 이클립스
- 전자정부 표준프레임워크
- 톰캣
- Today
- Total
개인적인 정리
Oracle LEAST() 본문
오라클 LEAST()
LEAST()
- 여러개의 인자들 사이에서 가장 작은값을 return.
LEAST(expr1, expr2....)
의 형태
LEAST returns the least of a list of one or more expressions. Oracle Database uses the first expr to determine the return type. If the first expr is numeric, then Oracle determines the argument with the highest numeric precedence, implicitly converts the remaining arguments to that data type before the comparison, and returns that data type. If the first expr is not numeric, then each expr after the first is implicitly converted to the data type of the first expr before the comparison.
Oracle Database compares each expr using nonpadded comparison semantics. The comparison is binary by default and is linguistic if the NLS_COMP parameter is set to LINGUISTIC and the NLS_SORT parameter has a setting other than BINARY. Character comparison is based on the numerical codes of the characters in the database character set and is performed on whole strings treated as one sequence of bytes, rather than character by character. If the first expr is a character data type and NVARCHAR2 if the first expr is a national character data type.
SQL> SELECT LEAST('B','A','C') FROM DUAL;
--> A
SQL> SELECT LEAST(1,'2.1','0.0089') FROM DUAL;
--> 0.0089
SQL> SELECT LEAST(1,'A','B') FROM DUAL;
--> ORA-01722: invalid number
SQL> SELECT LEAST('A','0.1','0.5555') FROM DUAL;
--> 0.1