Convert a string or a number to a string in hexadecimal format with the HEX() function : Hexadecimal : Data Types MySQL TUTORIALS


MySQL TUTORIALS » Data Types » Hexadecimal »

 

Convert a string or a number to a string in hexadecimal format with the HEX() function


mysql>
mysql> SELECT HEX('cat');
+------------+
| HEX('cat') |
+------------+
636174     |
+------------+
row in set (0.02 sec)

mysql>
mysql> SELECT 0x636174;
+----------+
0x636174 |
+----------+
| cat      |
+----------+
row in set (0.00 sec)

mysql>



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Data Types
» Hexadecimal