Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
29 | 30 |
Tags
- 오라클
- SVN
- 전자정부 표준프레임워크
- 윈도우
- Sring Functions and Operators
- 티베로
- HTTP
- Date and Time Functions
- Data and Time Functions
- String Function and Operators
- Tibero
- 방화벽
- String Functions and Date Operators
- String Functions and Operators
- MySQL
- Date and Time Function
- 전자정부표준프레임워크
- Oracle
Archives
- Today
- Total
웹이야기
[MySQL] ELT() 본문
MySQL 문자열 함수와 연산자
ELT()
-
ELT(N, str1, str2, str3....)
의 형태
ELT() returns the N th element of the list strings: str1 if N=1, str2 if N=2, and so on. Retruns NULL if N is less than 1 or greater than the number of arguments. ELT() is the complement of FIELD().
mysql> SELECT ELT(1, 'A', 'B', 'C');
+-----------------------+
| ELT(1, 'A', 'B', 'C') |
+-----------------------+
| A |
+-----------------------+
1 row in set (0.00 sec)
mysql> SELECT ELT(4, 'A', 'B', 'C');
+-----------------------+
| ELT(4, 'A', 'B', 'C') |
+-----------------------+
| NULL |
+-----------------------+
1 row in set (0.00 sec)
'D > MySQL' 카테고리의 다른 글
[MySQL] FIELD() (0) | 2020.04.08 |
---|---|
[MySQL] EXPORT_SET() (0) | 2020.04.08 |
[MySQL] CONCAT_WS() (0) | 2020.04.08 |
[MySQL] CONCAT() (0) | 2020.04.08 |
[MySQL] CHARACTER_LENGTH() (0) | 2020.04.08 |
Comments