mysql> select CONV(‘8ac7230489e80000’, 16, 10);
±---------------------------------+
| conv(‘8ac7230489e80000’, 16, 10) |
±---------------------------------+
| 18446744073709551615 |
±---------------------------------+
1 row in set (0.01 sec)
16进制转为10进制 ,使用CONV函数 大于10^18次方后 就不精确了,如上
mysql> select CONV(‘de0b6b3a7640000’, 16, 10);
±--------------------------------+
| conv(‘de0b6b3a7640000’, 16, 10) |
±--------------------------------+
| 1000000000000000000 |
±--------------------------------+
1 row in set (0.00 sec)