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 | 31 |
Tags
- 전자정부표준프레임워크
- Tibero
- Date and Time Function
- Sring Functions and Operators
- 방화벽
- String Functions and Date Operators
- String Functions and Operators
- 오라클
- HTTP
- String Function and Operators
- 전자정부 표준프레임워크
- Data and Time Functions
- Date and Time Functions
- 윈도우
- MySQL
- SVN
- 티베로
- Oracle
Archives
- Today
- Total
웹이야기
[MySQL] ORD() 본문
MySQL 문자열 함수와 연산지
ORD()
-
ORD(str)
의 형태
If the leftmost character of the string str is a multibyte character, returns the code for that character, calculated from the numeric values of its constituent bytes using this formula :
(1st bye code)
+ (2nd byte code * 256)
+ (3rd byte code * 256^2)....
If the leftmost character is not a multibyte character, ORD() returns the same value as the ASCII() function.
mysql> SELECT ORD('한글') ;
+---------------+
| ORD('한글') |
+---------------+
| 15570332 |
+---------------+
1 row in set (0.00 sec)
mysql> SELECT ORD(2) ;
+--------+
| ORD(2) |
+--------+
| 50 |
+--------+
1 row in set (0.00 sec)
'D > MySQL' 카테고리의 다른 글
[MySQL] QUOTE() (0) | 2020.04.20 |
---|---|
[MySQL] POSITION() (0) | 2020.04.20 |
[MySQL] OCTET_LENGTH() (0) | 2020.04.14 |
[MySQL] OCT() (0) | 2020.04.14 |
[MySQL] MID() (0) | 2020.04.14 |
Comments