What is the default type of a hexadecimal value in MySQL?

MySQLMySQLi Database

As we know that in numeric contexts the hexadecimal values act like integers and in string contexts they act like binary string. It can be understood with the help of the following example,

mysql> Select X'5455544F5249414C53504F494E54';
| X'5455544F5249414C53504F494E54' |
| TUTORIALSPOINT                  |
1 row in set (0.07 sec)

But, if we are talking about default type of hexadecimal value in MySQL, then it is a string.

Published on 21-Feb-2018 07:50:34