D/MySQL
[MySQL]UNHEX()
yeon.Biju
2020. 6. 18. 10:05
MySQL 문자열 함수와 연산자
UNHEX()
-
UNHEX(str)
의 형태
For a string argument str, UNHEX(str) interprets each pair of characters in the argument as a hexadecimal number and covnerts it to the byte represented by the number. The return value is a binary string.
mysql> SELECT UNHEX('4D7953514C');
+---------------------+
| UNHEX('4D7953514C') |
+---------------------+
| MySQL |
+---------------------+
1 row in set (0.00 sec)
mysql>
[MySQL] HEX()
MySQL 문자열 함수와 연산자 HEX() - HEX(str) HEX(N) 의 형태 For a string argument str, HEX() returns a hexadecimal string representation of str where each byte of each character in str is converted..
webobj.tistory.com