不知道你是不是要这个函数
mysql> select convert(0xffff,signed);
+------------------------+
| convert(0xffff,signed) |
+------------------------+
|                  65535 |
+------------------------+
1 row in set (0.06 sec) CONVERT(expr,type)The type can be one of the following values: BINARY[(N)] CHAR[(N)] DATE DATETIME DECIMAL SIGNED [INTEGER] TIME UNSIGNED [INTEGER]