웹이야기

[MySQL] OCT() 본문

D/MySQL

[MySQL] OCT()

yeon.Biju 2020. 4. 14. 14:46

MySQL 문자열 함수와 연산자

 

OCT()

   -

 

OCT(N)

의 형태

 

Returns a string representation of the octal value of N. where N is a longlong(BIGINT) number. This is equivalent to CONV(N, 10, 8). Returns NULL if N is NULL.

 

mysql> SELECT OCT(12);
+---------+
| OCT(12) |
+---------+
| 14      |
+---------+
1 row in set (0.00 sec)

'D > MySQL' 카테고리의 다른 글

[MySQL] ORD()  (0) 2020.04.14
[MySQL] OCTET_LENGTH()  (0) 2020.04.14
[MySQL] MID()  (0) 2020.04.14
[MySQL] MAKE_SET()  (0) 2020.04.14
[MySQL] LTRIM()  (0) 2020.04.14
Comments